public interface ByteBuffer
ByteBufferFactory
.Modifier and Type | Method and Description |
---|---|
ByteBuffer |
copy()
Returns a new byte[] instance of size
ByteBuffer.getLength() that contains all the bytes owned by this buffer. |
byte[] |
getBuf()
Returns the underlying buffer.
|
int |
getLength()
Length bytes, starting from offset, within the underlying byte[] (as returned by
ByteBuffer.getBuf() are owned
by this buffer instance. |
int |
getOffset()
Returns the offset within the underlying byte[] (as returned by
ByteBuffer.getBuf() owned by this buffer instance. |
byte[] getBuf()
int getOffset()
ByteBuffer.getBuf()
owned by this buffer instance.int getLength()
ByteBuffer.getBuf()
are owned
by this buffer instance.ByteBuffer copy()
ByteBuffer.getLength()
that contains all the bytes owned by this buffer.Copyright © 2015 JBoss, a division of Red Hat. All rights reserved.