read

fun ReadableByteChannel.read(buffer: IoBuffer): Int

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


fun ReadableByteChannel.read(buffer: Buffer): Int

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