@InterfaceAudience.Private
public interface ByteBufferAllocator
| Modifier and Type | Method and Description |
|---|---|
ByteBuffer |
allocate(long size,
boolean directByteBuffer)
Allocates a bytebuffer
|
ByteBuffer allocate(long size, boolean directByteBuffer) throws IOException
size - the size of the bytebufferdirectByteBuffer - indicator to create a direct bytebufferIOException - exception thrown if there is an error while creating the ByteBufferCopyright © 2007–2017 The Apache Software Foundation. All rights reserved.