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