@Deprecated public abstract class AbstractDerivedByteBuf extends AbstractByteBuf
Modifier | Constructor and Description |
---|---|
protected |
AbstractDerivedByteBuf(int maxCapacity)
已过时。
|
Modifier and Type | Method and Description |
---|---|
java.nio.ByteBuffer |
internalNioBuffer(int index, int length)
已过时。
仅内部使用:公开内部NIO缓冲区。
|
boolean |
isReadOnly()
已过时。
当且仅当此缓冲区为只读时才返回
true 。
|
java.nio.ByteBuffer |
nioBuffer(int index, int length)
已过时。
将此缓冲区的子区域公开为NIO
ByteBuffer 。
|
int |
refCnt()
已过时。
返回此对象的引用计数。
|
boolean |
release()
已过时。
通过减小引用计数
1 并且如果所述引用计数达到在将释放该对象
0 。
|
boolean |
release(int decrement)
已过时。
减小由指定的引用计数
decrement 并且如果所述引用计数达到在将释放该对象
0 。
|
ByteBuf |
retain()
已过时。
将参考计数增加
1 。
|
ByteBuf |
retain(int increment)
已过时。
通过指定的
increment 增加引用计数。
|
ByteBuf |
touch()
已过时。
记录此对象的当前访问位置以进行调试。
|
ByteBuf |
touch(java.lang.Object hint)
已过时。
记录此对象的当前访问位置,并附加一些用于调试的任意信息。
|
_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, checkNewCapacity, checkReadableBytes, checkSrcIndex, clear, compareTo, copy, 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, 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, writeZero
alloc, array, arrayOffset, capacity, capacity, copy, getBytes, getBytes, getBytes, getBytes, getBytes, getBytes, getDoubleLE, getFloatLE, hasArray, hasMemoryAddress, isDirect, memoryAddress, nioBufferCount, nioBuffers, order, readDoubleLE, readFloatLE, setBytes, setBytes, setBytes, setBytes, setBytes, setBytes, setDoubleLE, setFloatLE, unwrap, writeDoubleLE, writeFloatLE
public final int refCnt()
ReferenceCounted
复制的描述
0
,则表示此对象已被释放。
public final ByteBuf retain()
ReferenceCounted
复制的描述
1
。
retain
,界面
ReferenceCounted
retain
在类
ByteBuf
public final ByteBuf retain(int increment)
ReferenceCounted
复制的描述
increment
。
retain
在界面
ReferenceCounted
retain
在类
ByteBuf
public final ByteBuf touch()
ReferenceCounted
复制的描述
touch
在界面
ReferenceCounted
touch
在类
ByteBuf
public final ByteBuf touch(java.lang.Object hint)
ReferenceCounted
复制的描述
ResourceLeakDetector
提供给您。
touch
接口
ReferenceCounted
touch
在类
ByteBuf
public final boolean release()
ReferenceCounted
复制的描述
1
并且如果所述引用计数达到在将释放该对象
0
。
true
当且仅当引用计数变为
0
且此对象已被释放
public final boolean release(int decrement)
ReferenceCounted
复制的描述
0
则减少引用计数
decrement
并释放此对象。
true
当且仅当引用计数变为
0
且此对象已被释放
public boolean isReadOnly()
ByteBuf
true
。
isReadOnly
在类
AbstractByteBuf
public java.nio.ByteBuffer internalNioBuffer(int index, int length)
ByteBuf
internalNioBuffer
在类
ByteBuf
public java.nio.ByteBuffer nioBuffer(int index, int length)
ByteBuf
ByteBuffer
。
返回的缓冲区共享或包含此缓冲区的复制内容,同时更改返回的NIO缓冲区的位置和限制不会影响此缓冲区的索引和标记。
此方法不会修改此缓冲区的readerIndex
或writerIndex
。
请注意,如果此缓冲区是动态缓冲区并且它调整了其容量,则返回的NIO缓冲区将不会看到此缓冲区的更改。
nioBuffer
在类
ByteBuf
ByteBuf.nioBufferCount()
,
ByteBuf.nioBuffers()
,
ByteBuf.nioBuffers(int, int)
Copyright © 2008–2018 The Netty Project. All rights reserved.