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