Package | Description |
---|---|
org.glassfish.grizzly.memory |
Modifier and Type | Class and Description |
---|---|
protected class |
ByteBufferManager.SmallByteBufferWrapper
ByteBufferWrapper implementation, which supports trimming. |
Modifier and Type | Method and Description |
---|---|
ByteBufferWrapper |
ByteBufferManager.allocate(int size)
Allocated
Buffer of the required size. |
ByteBufferWrapper |
ByteBufferManager.allocateAtLeast(int size)
Allocated
Buffer at least of the provided size. |
ByteBufferWrapper |
ByteBufferWrapper.asReadOnlyBuffer() |
ByteBufferWrapper |
ByteBufferWrapper.clear() |
ByteBufferWrapper |
ByteBufferWrapper.compact() |
ByteBufferWrapper |
ByteBufferWrapper.duplicate() |
ByteBufferWrapper |
ByteBufferWrapper.flip() |
ByteBufferWrapper |
ByteBufferWrapper.get(byte[] dst) |
ByteBufferWrapper |
ByteBufferWrapper.get(byte[] dst,
int offset,
int length) |
ByteBufferWrapper |
ByteBufferWrapper.limit(int newLimit) |
ByteBufferWrapper |
ByteBufferWrapper.mark() |
ByteBufferWrapper |
ByteBufferWrapper.order(ByteOrder bo) |
ByteBufferWrapper |
ByteBufferWrapper.position(int newPosition) |
ByteBufferWrapper |
ByteBufferWrapper.prepend(Buffer header) |
ByteBufferWrapper |
ByteBufferWrapper.put(Buffer src) |
ByteBufferWrapper |
ByteBufferWrapper.put(Buffer src,
int position,
int length) |
ByteBufferWrapper |
ByteBufferWrapper.put(byte b) |
ByteBufferWrapper |
ByteBufferWrapper.put(byte[] src) |
ByteBufferWrapper |
ByteBufferWrapper.put(byte[] src,
int offset,
int length) |
ByteBufferWrapper |
ByteBufferWrapper.put(int index,
byte b) |
ByteBufferWrapper |
ByteBufferWrapper.putChar(char value) |
ByteBufferWrapper |
ByteBufferWrapper.putChar(int index,
char value) |
ByteBufferWrapper |
ByteBufferWrapper.putDouble(double value) |
ByteBufferWrapper |
ByteBufferWrapper.putDouble(int index,
double value) |
ByteBufferWrapper |
ByteBufferWrapper.putFloat(float value) |
ByteBufferWrapper |
ByteBufferWrapper.putFloat(int index,
float value) |
ByteBufferWrapper |
ByteBufferWrapper.putInt(int value) |
ByteBufferWrapper |
ByteBufferWrapper.putInt(int index,
int value) |
ByteBufferWrapper |
ByteBufferWrapper.putLong(int index,
long value) |
ByteBufferWrapper |
ByteBufferWrapper.putLong(long value) |
ByteBufferWrapper |
ByteBufferWrapper.putShort(int index,
short value) |
ByteBufferWrapper |
ByteBufferWrapper.putShort(short value) |
ByteBufferWrapper |
ByteBufferManager.reallocate(ByteBufferWrapper oldBuffer,
int newSize)
Reallocate
Buffer to a required size. |
ByteBufferWrapper |
ByteBufferWrapper.reset() |
ByteBufferWrapper |
ByteBufferWrapper.rewind() |
ByteBufferWrapper |
ByteBufferWrapper.slice() |
ByteBufferWrapper |
ByteBufferWrapper.slice(int position,
int limit) |
ByteBufferWrapper |
ByteBufferManager.wrap(byte[] data)
Returns
Buffer , which wraps the byte array. |
ByteBufferWrapper |
ByteBufferManager.wrap(byte[] data,
int offset,
int length)
Returns
Buffer , which wraps the part of byte array with
specific offset and length. |
ByteBufferWrapper |
ByteBufferManager.wrap(ByteBuffer byteBuffer)
Returns
Buffer , which wraps the ByteBuffer . |
ByteBufferWrapper |
ByteBufferManager.wrap(String s)
|
ByteBufferWrapper |
ByteBufferManager.wrap(String s,
Charset charset)
|
protected ByteBufferWrapper |
ByteBufferWrapper.wrapByteBuffer(ByteBuffer byteBuffer) |
protected ByteBufferWrapper |
ByteBufferManager.SmallByteBufferWrapper.wrapByteBuffer(ByteBuffer byteBuffer) |
Modifier and Type | Method and Description |
---|---|
ByteBufferWrapper |
ByteBufferManager.reallocate(ByteBufferWrapper oldBuffer,
int newSize)
Reallocate
Buffer to a required size. |
void |
ByteBufferManager.release(ByteBufferWrapper buffer)
Lets JVM Garbage collector to release buffer.
|
Copyright © 2014 Oracle Corporation. All rights reserved.