@Immutable public class HeapByteBufferAllocator extends java.lang.Object implements ByteBufferAllocator
ByteBuffer instances using
ByteBuffer.allocate(int).| 限定符和类型 | 字段和说明 |
|---|---|
static HeapByteBufferAllocator |
INSTANCE |
| 构造器和说明 |
|---|
HeapByteBufferAllocator() |
| 限定符和类型 | 方法和说明 |
|---|---|
java.nio.ByteBuffer |
allocate(int size)
Allocates
ByteBuffer of the given size. |
public static final HeapByteBufferAllocator INSTANCE
public java.nio.ByteBuffer allocate(int size)
ByteBufferAllocatorByteBuffer of the given size.allocate 在接口中 ByteBufferAllocatorsize - the size of the buffer.