@Deprecated public abstract class AbstractDerivedByteBuf extends AbstractByteBuf
leakDetector, readerIndex, writerIndex| Modifier | Constructor and Description |
|---|---|
protected |
AbstractDerivedByteBuf(int maxCapacity)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
java.nio.ByteBuffer |
internalNioBuffer(int index,
int length)
Deprecated.
Internal use only: Exposes the internal NIO buffer.
|
boolean |
isReadOnly()
Deprecated.
Returns
true if and only if this buffer is read-only. |
java.nio.ByteBuffer |
nioBuffer(int index,
int length)
Deprecated.
Exposes this buffer's sub-region as an NIO
ByteBuffer. |
int |
refCnt()
Deprecated.
Returns the reference count of this object.
|
(package private) int |
refCnt0()
Deprecated.
|
boolean |
release()
Deprecated.
Decreases the reference count by
1 and deallocates this object if the reference count reaches at
0. |
boolean |
release(int decrement)
Deprecated.
Decreases the reference count by the specified
decrement and deallocates this object if the reference
count reaches at 0. |
(package private) boolean |
release0()
Deprecated.
|
(package private) boolean |
release0(int decrement)
Deprecated.
|
ByteBuf |
retain()
Deprecated.
Increases the reference count by
1. |
ByteBuf |
retain(int increment)
Deprecated.
Increases the reference count by the specified
increment. |
(package private) ByteBuf |
retain0()
Deprecated.
|
(package private) ByteBuf |
retain0(int increment)
Deprecated.
|
ByteBuf |
touch()
Deprecated.
Records the current access location of this object for debugging purposes.
|
ByteBuf |
touch(java.lang.Object hint)
Deprecated.
Records the current access location of this object with an additional arbitrary information for debugging
purposes.
|
(package private) ByteBuf |
touch0()
Deprecated.
|
(package private) ByteBuf |
touch0(java.lang.Object hint)
Deprecated.
|
_getByte, _getInt, _getIntLE, _getLong, _getLongLE, _getShort, _getShortLE, _getUnsignedMedium, _getUnsignedMediumLE, _setByte, _setInt, _setIntLE, _setLong, _setLongLE, _setMedium, _setMediumLE, _setShort, _setShortLE, adjustMarkers, asReadOnly, bytesBefore, bytesBefore, bytesBefore, checkDstIndex, checkIndex, checkIndex, checkIndex0, checkNewCapacity, checkReadableBytes, checkSrcIndex, clear, compareTo, copy, discardMarks, discardReadBytes, discardSomeReadBytes, duplicate, ensureAccessible, ensureWritable, ensureWritable, equals, forEachByte, forEachByte, forEachByteDesc, forEachByteDesc, getBoolean, getByte, getBytes, getBytes, getBytes, getChar, getCharSequence, getDouble, getFloat, getInt, getIntLE, getLong, getLongLE, getMedium, getMediumLE, getShort, getShortLE, getUnsignedByte, getUnsignedInt, getUnsignedIntLE, getUnsignedMedium, getUnsignedMediumLE, getUnsignedShort, getUnsignedShortLE, hashCode, indexOf, isReadable, isReadable, isWritable, isWritable, markReaderIndex, markWriterIndex, maxCapacity, maxCapacity, maxWritableBytes, newSwappedByteBuf, nioBuffer, nioBuffers, order, readableBytes, readBoolean, readByte, readBytes, readBytes, readBytes, readBytes, readBytes, readBytes, readBytes, readBytes, readBytes, readBytes, readChar, readCharSequence, readDouble, readerIndex, readerIndex, readFloat, readInt, readIntLE, readLong, readLongLE, readMedium, readMediumLE, readRetainedSlice, readShort, readShortLE, readSlice, readUnsignedByte, readUnsignedInt, readUnsignedIntLE, readUnsignedMedium, readUnsignedMediumLE, readUnsignedShort, readUnsignedShortLE, resetReaderIndex, resetWriterIndex, retainedDuplicate, retainedSlice, retainedSlice, setBoolean, setByte, setBytes, setBytes, setBytes, setChar, setCharSequence, setDouble, setFloat, setIndex, setIndex0, setInt, setIntLE, setLong, setLongLE, setMedium, setMediumLE, setShort, setShortLE, setZero, skipBytes, slice, slice, toString, toString, toString, writableBytes, writeBoolean, writeByte, writeBytes, writeBytes, writeBytes, writeBytes, writeBytes, writeBytes, writeBytes, writeBytes, writeBytes, writeChar, writeCharSequence, writeDouble, writeFloat, writeInt, writeIntLE, writeLong, writeLongLE, writeMedium, writeMediumLE, writerIndex, writerIndex, writeShort, writeShortLE, writeZeroalloc, array, arrayOffset, capacity, capacity, copy, getBytes, getBytes, getBytes, getBytes, getBytes, getBytes, hasArray, hasMemoryAddress, isDirect, memoryAddress, nioBufferCount, nioBuffers, order, setBytes, setBytes, setBytes, setBytes, setBytes, setBytes, unwrapprotected AbstractDerivedByteBuf(int maxCapacity)
public final int refCnt()
ReferenceCounted0, it means this object has been deallocated.int refCnt0()
public final ByteBuf retain()
ReferenceCounted1.retain in interface ReferenceCountedretain in class ByteBufByteBuf retain0()
public final ByteBuf retain(int increment)
ReferenceCountedincrement.retain in interface ReferenceCountedretain in class ByteBufByteBuf retain0(int increment)
public final ByteBuf touch()
ReferenceCountedResourceLeakDetector. This method is a shortcut to touch(null).touch in interface ReferenceCountedtouch in class ByteBufByteBuf touch0()
public final ByteBuf touch(java.lang.Object hint)
ReferenceCountedResourceLeakDetector.touch in interface ReferenceCountedtouch in class ByteBufByteBuf touch0(java.lang.Object hint)
public final boolean release()
ReferenceCounted1 and deallocates this object if the reference count reaches at
0.true if and only if the reference count became 0 and this object has been deallocatedboolean release0()
public final boolean release(int decrement)
ReferenceCounteddecrement and deallocates this object if the reference
count reaches at 0.true if and only if the reference count became 0 and this object has been deallocatedboolean release0(int decrement)
public boolean isReadOnly()
ByteBuftrue if and only if this buffer is read-only.isReadOnly in class AbstractByteBufpublic java.nio.ByteBuffer internalNioBuffer(int index,
int length)
ByteBufinternalNioBuffer in class ByteBufpublic java.nio.ByteBuffer nioBuffer(int index,
int length)
ByteBufByteBuffer. The returned buffer
shares the content with this buffer, while changing the position and limit of the returned
NIO buffer does not affect the indexes and marks of this buffer. This method does not
modify readerIndex or writerIndex of this buffer. Please note that the
returned NIO buffer will not see the changes of this buffer if this buffer is a dynamic
buffer and it adjusted its capacity.nioBuffer in class ByteBufByteBuf.nioBufferCount(),
ByteBuf.nioBuffers(),
ByteBuf.nioBuffers(int, int)