@Immutable public class HeapByteBufferAllocator extends Object implements ByteBufferAllocator
ByteBuffer
instances using
ByteBuffer.allocate(int)
.Constructor and Description |
---|
HeapByteBufferAllocator() |
Modifier and Type | Method and Description |
---|---|
ByteBuffer |
allocate(int size)
Allocates
ByteBuffer of the given size. |
public ByteBuffer allocate(int size)
ByteBufferAllocator
ByteBuffer
of the given size.allocate
in interface ByteBufferAllocator
size
- the size of the buffer.Copyright © 2005-2019 The Apache Software Foundation. All Rights Reserved.