interface AsyncByteSource
source · line 11public
public interface AsyncByteSource
A suspending byte source. A positive-size read returns the number written to the buffer; zero means EOF, and short reads are permitted.
Extensions
public suspend fun AsyncByteSource.readInto(buffer: NativeByteBuffer): Long· scoop:scoop.asyncio:0.1.0public suspend fun AsyncByteSource.decompressTo(destination: AsyncByteSink, options: DecompressionOptions = DecompressionOptions(), bufferSize: Long = 8192L): CompressionTotals· scoop:scoop.compression:0.1.0public suspend fun AsyncByteSource.copyTo(destination: AsyncByteSink, bufferSize: Long = 8192L): Long· scoop:scoop.asyncio:0.1.0public suspend fun AsyncByteSource.readAllBytes(maxBytes: Long): Array<Byte>· scoop:scoop.asyncio:0.1.0public suspend fun AsyncByteSource.readFully(buffer: NativeByteBuffer, count: Long = buffer.writableBytes): Unit· scoop:scoop.asyncio:0.1.0public suspend fun AsyncByteSource.compressTo(destination: AsyncByteSink, options: CompressionOptions = CompressionOptions.Zstd(ZstdOptions()), bufferSize: Long = 8192L): CompressionTotals· scoop:scoop.compression:0.1.0public suspend fun AsyncByteSource.readAllBytes(): Array<Byte>· scoop:scoop.asyncio:0.1.0
function readInto
source · line 16public
public suspend fun readInto(buffer: NativeByteBuffer, count: Long): Long
Reads at most count bytes into the writable region and advances its write position. Zero for a positive request denotes EOF.
parameter count
source · line 16public
count: Long
parameter buffer
source · line 16public
buffer: NativeByteBuffer