@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() |
public static final DirectByteBufferAllocator INSTANCE
public ByteBuffer allocate(int size)
ByteBufferAllocatorByteBuffer of the given size.allocate in interface ByteBufferAllocatorsize - the size of the buffer.Copyright © 2005–2022 The Apache Software Foundation. All rights reserved.