Package | Description |
---|---|
org.xnio |
The main API package for XNIO.
|
Modifier and Type | Field and Description |
---|---|
static BufferAllocator<ByteBuffer> |
BufferAllocator.BYTE_BUFFER_ALLOCATOR
A simple allocator for heap-array-backed byte buffers.
|
static BufferAllocator<ByteBuffer> |
BufferAllocator.DIRECT_BYTE_BUFFER_ALLOCATOR
A simple allocator for direct byte buffers.
|
Modifier and Type | Method and Description |
---|---|
static BufferAllocator<ByteBuffer> |
Buffers.sliceAllocator(ByteBuffer buffer)
A buffer allocator which allocates slices off of the given buffer.
|
Modifier and Type | Method and Description |
---|---|
static <B extends Buffer> |
Buffers.allocatedBufferPool(BufferAllocator<B> allocator,
int size)
A buffer pool which allocates a new buffer on every allocate request, and discards buffers on free.
|
static ByteBuffer |
Buffers.copy(ByteBuffer buffer,
int sliceSize,
BufferAllocator<ByteBuffer> allocator)
Copy a portion of the buffer into a newly allocated buffer.
|
Constructor and Description |
---|
ByteBufferSlicePool(BufferAllocator<ByteBuffer> allocator,
int bufferSize,
int maxRegionSize)
Construct a new instance.
|
Copyright © 2018 JBoss by Red Hat. All rights reserved.