public interface ByteBuffer
ByteBufferFactory
.Modifier and Type | Method and Description |
---|---|
ByteBuffer |
copy()
Returns a new byte[] instance of size
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
getBuf() are owned
by this buffer instance. |
int |
getOffset()
Returns the offset within the underlying byte[] (as returned by
getBuf() owned by this buffer instance. |
byte[] getBuf()
int getOffset()
getBuf()
owned by this buffer instance.int getLength()
getBuf()
are owned
by this buffer instance.ByteBuffer copy()
getLength()
that contains all the bytes owned by this buffer.Copyright © 2021 JBoss by Red Hat. All rights reserved.