@Deprecated public abstract class AbstractDerivedByteBuf extends AbstractByteBuf
| 限定符 | 构造器和说明 |
|---|---|
protected |
AbstractDerivedByteBuf(int maxCapacity)
已过时。
|
| 限定符和类型 | 方法和说明 |
|---|---|
java.nio.ByteBuffer |
internalNioBuffer(int index,
int length)
已过时。
Internal use only: Exposes the internal NIO buffer.
|
java.nio.ByteBuffer |
nioBuffer(int index,
int length)
已过时。
Exposes this buffer's sub-region as an NIO
ByteBuffer. |
int |
refCnt()
已过时。
Returns the reference count of this object.
|
boolean |
release()
已过时。
Decreases the reference count by
1 and deallocates this object if the reference count reaches at
0. |
boolean |
release(int decrement)
已过时。
Decreases the reference count by the specified
decrement and deallocates this object if the reference
count reaches at 0. |
ByteBuf |
retain()
已过时。
Increases the reference count by
1. |
ByteBuf |
retain(int increment)
已过时。
Increases the reference count by the specified
increment. |
_getByte, _getInt, _getLong, _getShort, _getUnsignedMedium, _setByte, _setInt, _setLong, _setMedium, _setShort, adjustMarkers, bytesBefore, bytesBefore, bytesBefore, checkDstIndex, checkIndex, checkIndex, checkNewCapacity, checkReadableBytes, checkSrcIndex, clear, compareTo, copy, discardReadBytes, discardSomeReadBytes, duplicate, ensureAccessible, ensureWritable, ensureWritable, equals, forEachByte, forEachByte, forEachByteDesc, forEachByteDesc, getBoolean, getByte, getBytes, getBytes, getBytes, getChar, getDouble, getFloat, getInt, getLong, getMedium, getShort, getUnsignedByte, getUnsignedInt, getUnsignedMedium, getUnsignedShort, 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, readChar, readDouble, readerIndex, readerIndex, readFloat, readInt, readLong, readMedium, readShort, readSlice, readUnsignedByte, readUnsignedInt, readUnsignedMedium, readUnsignedShort, resetReaderIndex, resetWriterIndex, setBoolean, setByte, setBytes, setBytes, setBytes, setChar, setDouble, setFloat, setIndex, setInt, setLong, setMedium, setShort, setZero, skipBytes, slice, slice, toString, toString, toString, writableBytes, writeBoolean, writeByte, writeBytes, writeBytes, writeBytes, writeBytes, writeBytes, writeBytes, writeBytes, writeBytes, writeChar, writeDouble, writeFloat, writeInt, writeLong, writeMedium, writerIndex, writerIndex, writeShort, writeZeroalloc, array, arrayOffset, capacity, capacity, copy, getBytes, getBytes, getBytes, getBytes, getBytes, hasArray, hasMemoryAddress, isDirect, memoryAddress, nioBufferCount, nioBuffers, order, setBytes, setBytes, setBytes, setBytes, setBytes, unwrappublic final int refCnt()
ReferenceCounted0, it means this object has been deallocated.public final ByteBuf retain()
ReferenceCounted1.retain 在接口中 ReferenceCountedretain 在类中 ByteBufpublic final ByteBuf retain(int increment)
ReferenceCountedincrement.retain 在接口中 ReferenceCountedretain 在类中 ByteBufpublic 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 deallocatedpublic 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 deallocatedpublic java.nio.ByteBuffer internalNioBuffer(int index,
int length)
ByteBufinternalNioBuffer 在类中 ByteBufpublic java.nio.ByteBuffer nioBuffer(int index,
int length)
ByteBufByteBuffer. The returned buffer
either share or contains the copied content of 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.