public abstract class AbstractDerivedByteBuf extends AbstractByteBuf
Modifier | Constructor and Description |
---|---|
protected |
AbstractDerivedByteBuf(int maxCapacity) |
Modifier and Type | Method and Description |
---|---|
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 |
resumeIntermediaryDeallocations()
Resumes the intermediary deallocation of the internal memory block of this buffer, suspended by
ByteBuf.suspendIntermediaryDeallocations() . |
ByteBuf |
retain()
Increases the reference count by
1 . |
ByteBuf |
retain(int increment)
Increases the reference count by the specified
increment . |
ByteBuf |
suspendIntermediaryDeallocations()
Suspends the intermediary deallocation of the internal memory block of this buffer until asked via
ByteBuf.resumeIntermediaryDeallocations() . |
_getByte, _getInt, _getLong, _getShort, _getUnsignedMedium, _setByte, _setInt, _setLong, _setMedium, _setShort, adjustMarkers, bytesBefore, bytesBefore, bytesBefore, bytesBefore, bytesBefore, bytesBefore, checkDstIndex, checkIndex, checkIndex, checkReadableBytes, checkSrcIndex, clear, compareTo, copy, discardReadBytes, discardSomeReadBytes, duplicate, ensureAccessible, ensureWritable, ensureWritable, ensureWritableBytes, equals, getBoolean, getByte, getBytes, getBytes, getBytes, getChar, getDouble, getFloat, getInt, getLong, getMedium, getShort, getUnsignedByte, getUnsignedInt, getUnsignedMedium, getUnsignedShort, hashCode, indexOf, indexOf, isReadable, isReadable, isWritable, isWritable, markReaderIndex, markWriterIndex, maxCapacity, maxWritableBytes, nioBuffer, nioBuffers, order, readable, 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, type, writable, writableBytes, writeBoolean, writeByte, writeBytes, writeBytes, writeBytes, writeBytes, writeBytes, writeBytes, writeBytes, writeBytes, writeChar, writeDouble, writeFloat, writeInt, writeLong, writeMedium, writerIndex, writerIndex, writeShort, writeZero
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
alloc, array, arrayOffset, capacity, capacity, copy, getBytes, getBytes, getBytes, getBytes, getBytes, hasArray, hasMemoryAddress, isDirect, memoryAddress, nioBuffer, nioBufferCount, nioBuffers, order, setBytes, setBytes, setBytes, setBytes, setBytes, unwrap
public final int refCnt()
ReferenceCounted
0
, it means this object has been deallocated.public final ByteBuf retain()
ReferenceCounted
1
.public final ByteBuf retain(int increment)
ReferenceCounted
increment
.public final boolean release()
ReferenceCounted
1
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)
ReferenceCounted
decrement
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 ByteBuf suspendIntermediaryDeallocations()
ByteBuf
ByteBuf.resumeIntermediaryDeallocations()
. An intermediary deallocation is usually made when the capacity of
a buffer changes.public final ByteBuf resumeIntermediaryDeallocations()
ByteBuf
ByteBuf.suspendIntermediaryDeallocations()
.Copyright © 2008-2013 The Netty Project. All Rights Reserved.