@Contract(threading=IMMUTABLE) public class DirectByteBufferAllocator extends Object implements ByteBufferAllocator
ByteBuffer
instances using
ByteBuffer.allocateDirect(int)
.Modifier and Type | Field and Description |
---|---|
static DirectByteBufferAllocator |
INSTANCE |
Constructor and Description |
---|
DirectByteBufferAllocator() |
Modifier and Type | Method and Description |
---|---|
ByteBuffer |
allocate(int size)
Allocates
ByteBuffer of the given size. |
public static final DirectByteBufferAllocator INSTANCE
public DirectByteBufferAllocator()
public ByteBuffer allocate(int size)
ByteBufferAllocator
ByteBuffer
of the given size.allocate
in interface ByteBufferAllocator
size
- the size of the buffer.WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses