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