class ByteBufferStaticExtensions extends Object
Static method extensions to the ByteBuffer class.
| Constructor and description |
|---|
ByteBufferStaticExtensions() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
static ByteBuffer |
allocateNative(ByteBuffer self, int capacity)Allocates a ByteBuffer with native byte ordering. |
|
static ByteBuffer |
fromBuffers(ByteBuffer self, ByteBuffer[] buffers)Allocate a native-ordered ByteBuffer, with data from several other
ByteBuffers. |
|
static ByteBuffer |
wrapNative(ByteBuffer self, byte[] array)Wraps a byte[] in a ByteBuffer with native byte ordering. |
|
static ByteBuffer |
wrapNative(ByteBuffer self, byte[] array, int offset, int length)Wraps a byte[] in a ByteBuffer with native byte ordering. |
Allocates a ByteBuffer with native byte ordering.
ByteBuffer. Allocate a native-ordered ByteBuffer, with data from several other
ByteBuffers.
@return
Wraps a byte[] in a ByteBuffer with native byte ordering.
ByteBuffer. Wraps a byte[] in a ByteBuffer with native byte ordering.
ByteBuffer.