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


Deprecated

Use read(Memory) instead.

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