Scoop API

scoop:scoop.asyncio:0.1.0

readFully

function readFully

source · line 52
public
public suspend fun AsyncByteSource.readFully(buffer: NativeByteBuffer, count: Long = buffer.writableBytes): Unit

Extension receiver: AsyncByteSource

Loops until count bytes have been read. Premature EOF throws UnexpectedEofException; an invalid count is rejected before transfer.