Class UnpooledUnsafeNoCleanerDirectByteBuf
java.lang.Object
io.netty.buffer.ByteBuf
io.netty.buffer.AbstractByteBuf
io.netty.buffer.AbstractReferenceCountedByteBuf
io.netty.buffer.UnpooledDirectByteBuf
io.netty.buffer.UnpooledUnsafeDirectByteBuf
io.netty.buffer.UnpooledUnsafeNoCleanerDirectByteBuf
- All Implemented Interfaces:
ByteBufConvertible, ReferenceCounted, Comparable<ByteBuf>
- Direct Known Subclasses:
UnpooledByteBufAllocator.InstrumentedUnpooledUnsafeNoCleanerDirectByteBuf
-
Field Summary
Fields inherited from class UnpooledUnsafeDirectByteBuf
memoryAddressFields inherited from class UnpooledDirectByteBuf
buffer, cleanableFields inherited from class AbstractByteBuf
checkAccessible, leakDetector, readerIndex, writerIndex -
Constructor Summary
ConstructorsConstructorDescriptionUnpooledUnsafeNoCleanerDirectByteBuf(ByteBufAllocator alloc, int initialCapacity, int maxCapacity) -
Method Summary
Modifier and TypeMethodDescriptionprotected ByteBufferallocateDirect(int initialCapacity) Allocate a new directByteBufferwith the given initialCapacity.capacity(int newCapacity) Adjusts the capacity of this buffer.protected voidfreeDirect(ByteBuffer buffer) Free a directByteBuffer(package private) CleanableDirectBufferreallocateDirect(CleanableDirectBuffer oldBuffer, int newCapacity) Methods inherited from class UnpooledUnsafeDirectByteBuf
_getByte, _getInt, _getIntLE, _getLong, _getLongLE, _getShort, _getShortLE, _getUnsignedMedium, _getUnsignedMediumLE, _setByte, _setInt, _setIntLE, _setLong, _setLongLE, _setMedium, _setMediumLE, _setShort, _setShortLE, addr, copy, getByte, getBytes, getBytes, getBytes, getBytes, getInt, getLong, getShort, getUnsignedMedium, hasMemoryAddress, memoryAddress, newSwappedByteBuf, setByte, setByteBuffer, setByteBuffer, setBytes, setBytes, setBytes, setBytes, setInt, setLong, setMedium, setShort, setZero, writeZeroMethods inherited from class UnpooledDirectByteBuf
_internalNioBuffer, alloc, allocateDirectBuffer, allocateDirectBuffer, array, arrayOffset, capacity, deallocate, getBytes, getBytes, getBytes, getBytes, getBytes, getIntLE, getLongLE, getShortLE, hasArray, internalNioBuffer, isContiguous, isDirect, nioBuffer, nioBufferCount, nioBuffers, order, readBytes, readBytes, readBytes, readBytes, readBytes, setBytes, setBytes, setIntLE, setLongLE, setMediumLE, setShortLE, unwrapMethods inherited from class AbstractReferenceCountedByteBuf
isAccessible, refCnt, release, release, resetRefCnt, retain, retain, setRefCnt, touch, touchMethods inherited from class AbstractByteBuf
_isDirect, _memoryAddress, adjustMarkers, asReadOnly, bytesBefore, bytesBefore, bytesBefore, checkDstIndex, checkDstIndex, checkIndex, checkIndex, checkIndex0, checkNewCapacity, checkReadableBytes, checkSrcIndex, clear, compareTo, copy, discardMarks, discardReadBytes, discardSomeReadBytes, duplicate, ensureAccessible, ensureWritable, ensureWritable, ensureWritable0, equals, forEachByte, forEachByte, forEachByteAsc0, forEachByteDesc, forEachByteDesc, forEachByteDesc0, getBoolean, getBytes, getBytes, getBytes, getChar, getCharSequence, getDouble, getFloat, getMedium, getMediumLE, getUnsignedByte, getUnsignedInt, getUnsignedIntLE, getUnsignedMediumLE, getUnsignedShort, getUnsignedShortLE, hashCode, indexOf, isReadable, isReadable, isReadOnly, isWritable, isWritable, markReaderIndex, markWriterIndex, maxCapacity, maxCapacity, maxWritableBytes, nioBuffer, nioBuffers, order, readableBytes, readBoolean, readByte, readBytes, readBytes, readBytes, readBytes, readBytes, readChar, readCharSequence, readDouble, readerIndex, readerIndex, readFloat, readInt, readIntLE, readLong, readLongLE, readMedium, readMediumLE, readRetainedSlice, readShort, readShortLE, readSlice, readString, readUnsignedByte, readUnsignedInt, readUnsignedIntLE, readUnsignedMedium, readUnsignedMediumLE, readUnsignedShort, readUnsignedShortLE, resetReaderIndex, resetWriterIndex, retainedDuplicate, retainedSlice, retainedSlice, setBoolean, setBytes, setBytes, setBytes, setChar, setCharSequence, setDouble, setFloat, setIndex, setIndex0, skipBytes, slice, slice, toString, toString, toString, trimIndicesToCapacity, 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, writeShortLEMethods inherited from class ByteBuf
asByteBuf, getDoubleLE, getFloatLE, maxFastWritableBytes, readDoubleLE, readFloatLE, setDoubleLE, setFloatLE, writeDoubleLE, writeFloatLE
-
Constructor Details
-
UnpooledUnsafeNoCleanerDirectByteBuf
UnpooledUnsafeNoCleanerDirectByteBuf(ByteBufAllocator alloc, int initialCapacity, int maxCapacity)
-
-
Method Details
-
allocateDirect
Description copied from class:UnpooledDirectByteBufAllocate a new directByteBufferwith the given initialCapacity.- Overrides:
allocateDirectin classUnpooledDirectByteBuf
-
reallocateDirect
-
freeDirect
Description copied from class:UnpooledDirectByteBufFree a directByteBuffer- Overrides:
freeDirectin classUnpooledDirectByteBuf
-
capacity
Description copied from class:ByteBufAdjusts the capacity of this buffer. If thenewCapacityis less than the current capacity, the content of this buffer is truncated. If thenewCapacityis greater than the current capacity, the buffer is appended with unspecified data whose length is(newCapacity - currentCapacity).- Overrides:
capacityin classUnpooledDirectByteBuf
-