read

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


fun ReadableByteChannel.read(buffer: <Error class: unknown class>): Int

Deprecated

Use read(Memory) instead.

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