public class ManagedBuffer.ByteBufferView extends Object
A read-only view of the managed buffer’s content (backing buffer) and a reference to the managed buffer. Can be used if several consumers need the same content.
Modifier and Type | Method and Description |
---|---|
ByteBuffer |
get()
Returns the
ByteBuffer that represents this
view (position, mark, limit). |
ManagedBuffer<ByteBuffer> |
managedBuffer()
Returns the managed buffer that this reader is a view of.
|
public ByteBuffer get()
Returns the ByteBuffer
that represents this
view (position, mark, limit).
ByteBuffer
viewpublic ManagedBuffer<ByteBuffer> managedBuffer()
Returns the managed buffer that this reader is a view of.