@InterfaceAudience.Private public interface ByteBufferAllocator
限定符和类型 | 方法和说明 |
---|---|
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–2022 The Apache Software Foundation. All rights reserved.