Uses of Class
org.glassfish.grizzly.memory.ByteBufferWrapper
Packages that use ByteBufferWrapper
-
Uses of ByteBufferWrapper in org.glassfish.grizzly.memory
Subclasses of ByteBufferWrapper in org.glassfish.grizzly.memoryModifier and TypeClassDescriptionprotected final classByteBufferWrapperimplementation, which supports trimming.Methods in org.glassfish.grizzly.memory that return ByteBufferWrapperModifier and TypeMethodDescriptionByteBufferManager.allocate(int size) AllocatedBufferof the required size.ByteBufferManager.allocateAtLeast(int size) AllocatedBufferat least of the provided size.ByteBufferWrapper.asReadOnlyBuffer()final ByteBufferWrapperByteBufferWrapper.clear()ByteBufferWrapper.compact()ByteBufferWrapper.duplicate()final ByteBufferWrapperByteBufferWrapper.flip()ByteBufferWrapper.get(byte[] dst) ByteBufferWrapper.get(byte[] dst, int offset, int length) final ByteBufferWrapperByteBufferWrapper.limit(int newLimit) final ByteBufferWrapperByteBufferWrapper.mark()final ByteBufferWrapperByteBufferWrapper.position(int newPosition) ByteBufferWrapper.put(byte b) ByteBufferWrapper.put(byte[] src) ByteBufferWrapper.put(byte[] src, int offset, int length) ByteBufferWrapper.put(int index, byte b) ByteBufferWrapper.putChar(char value) ByteBufferWrapper.putChar(int index, char value) ByteBufferWrapper.putDouble(double value) ByteBufferWrapper.putDouble(int index, double value) ByteBufferWrapper.putFloat(float value) ByteBufferWrapper.putFloat(int index, float value) ByteBufferWrapper.putInt(int value) ByteBufferWrapper.putInt(int index, int value) ByteBufferWrapper.putLong(int index, long value) ByteBufferWrapper.putLong(long value) ByteBufferWrapper.putShort(int index, short value) ByteBufferWrapper.putShort(short value) ByteBufferManager.reallocate(ByteBufferWrapper oldBuffer, int newSize) ReallocateBufferto a required size.final ByteBufferWrapperByteBufferWrapper.reset()final ByteBufferWrapperByteBufferWrapper.rewind()ByteBufferWrapper.slice()ByteBufferWrapper.slice(int position, int limit) ByteBufferManager.wrap(byte[] data) ReturnsBuffer, which wraps the byte array.ByteBufferManager.wrap(byte[] data, int offset, int length) ReturnsBuffer, which wraps the part of byte array with specific offset and length.ByteBufferManager.wrap(ByteBuffer byteBuffer) ReturnsBuffer, which wraps theByteBuffer.protected ByteBufferWrapperByteBufferManager.SmallByteBufferWrapper.wrapByteBuffer(ByteBuffer byteBuffer) protected ByteBufferWrapperByteBufferWrapper.wrapByteBuffer(ByteBuffer byteBuffer) Methods in org.glassfish.grizzly.memory with parameters of type ByteBufferWrapperModifier and TypeMethodDescriptionByteBufferManager.reallocate(ByteBufferWrapper oldBuffer, int newSize) ReallocateBufferto a required size.voidByteBufferManager.release(ByteBufferWrapper buffer) Lets JVM Garbage collector to release buffer.