@Contract(threading=IMMUTABLE) public class HeapByteBufferAllocator extends Object implements ByteBufferAllocator
ByteBuffer instances using
ByteBuffer.allocate(int).| Modifier and Type | Field and Description |
|---|---|
static HeapByteBufferAllocator |
INSTANCE |
| Constructor and Description |
|---|
HeapByteBufferAllocator() |
| Modifier and Type | Method and Description |
|---|---|
ByteBuffer |
allocate(int size)
Allocates
ByteBuffer of the given size. |
public static final HeapByteBufferAllocator INSTANCE
public ByteBuffer allocate(int size)
ByteBufferAllocatorByteBuffer of the given size.allocate in interface ByteBufferAllocatorsize - the size of the buffer.Copyright © 2010 - 2020 Adobe. All Rights Reserved