read
fun ReadableByteChannel.read(buffer: IoBuffer): Int
Read from a NIO channel into the specified buffer
Could return 0
if the channel is non-blocking or buffer has no free space
Return number of bytes read (possibly 0) or -1 if EOF
fun ReadableByteChannel.read(buffer: IoBuffer): Int
Read from a NIO channel into the specified buffer
Could return 0
if the channel is non-blocking or buffer has no free space
Return number of bytes read (possibly 0) or -1 if EOF