asByteChannel

Returns a new ByteChannel instance representing this buffer.


Returns WritableByteChannel backed by this sink. Closing the channel will also close the sink.


Returns ReadableByteChannel backed by this source. Closing the source will close the source.