| Modifier and Type | Method and Description |
|---|---|
static UnsafeHeapBuffer |
UnsafeHeapBuffer.allocate()
Allocates a heap buffer with an initial capacity of
4096 and a maximum capacity of HeapMemory.MAX_SIZE. |
static UnsafeHeapBuffer |
UnsafeHeapBuffer.allocate(int initialCapacity)
Allocates a heap buffer with the given initial capacity.
|
static UnsafeHeapBuffer |
UnsafeHeapBuffer.allocate(int initialCapacity,
int maxCapacity)
Allocates a new heap buffer.
|
UnsafeHeapBuffer |
UnsafeHeapBuffer.duplicate() |
UnsafeHeapBuffer |
UnsafeHeapBuffer.reset(byte[] array)
Resets the internal heap array.
|
static UnsafeHeapBuffer |
UnsafeHeapBuffer.wrap(byte[] bytes)
Wraps the given bytes in a heap buffer.
|
Copyright © 2013–2018. All rights reserved.