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