read

fun ReadableByteChannel.read(buffer: IoBuffer): Int

Deprecated: Binary compatibility.

Does the same as ReadableByteChannel.read but to a IoBuffer instance

fun ReadableByteChannel.read(buffer: Buffer): Int

Deprecated: Use read(Memory) instead.

Does the same as ReadableByteChannel.read but to a Buffer instance

fun ReadableByteChannel.read(
    destination: Memory,
    destinationOffset: Int = 0,
    maxLength: Int = destination.size32 - destinationOffset
): Int

Does the same as ReadableByteChannel.read but to a Memory instance