Class UnsafeHeapSwappedByteBuf
java.lang.Object
io.netty.buffer.ByteBuf
io.netty.buffer.SwappedByteBuf
io.netty.buffer.AbstractUnsafeSwappedByteBuf
io.netty.buffer.UnsafeHeapSwappedByteBuf
- All Implemented Interfaces:
ByteBufConvertible, ReferenceCounted, Comparable<ByteBuf>
Special
SwappedByteBuf for ByteBufs that use unsafe to access the byte array.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected int_getInt(AbstractByteBuf wrapped, int index) protected long_getLong(AbstractByteBuf wrapped, int index) protected short_getShort(AbstractByteBuf wrapped, int index) protected void_setInt(AbstractByteBuf wrapped, int index, int value) protected void_setLong(AbstractByteBuf wrapped, int index, long value) protected void_setShort(AbstractByteBuf wrapped, int index, short value) private static intMethods inherited from class AbstractUnsafeSwappedByteBuf
getChar, getDouble, getFloat, getInt, getLong, getShort, getUnsignedInt, getUnsignedShort, setChar, setDouble, setFloat, setInt, setLong, setShort, writeChar, writeDouble, writeFloat, writeInt, writeLong, writeShortMethods inherited from class SwappedByteBuf
alloc, array, arrayOffset, asReadOnly, bytesBefore, bytesBefore, bytesBefore, capacity, capacity, clear, compareTo, copy, copy, discardReadBytes, discardSomeReadBytes, duplicate, ensureWritable, ensureWritable, equals, forEachByte, forEachByte, forEachByteDesc, forEachByteDesc, getBoolean, getByte, getBytes, getBytes, getBytes, getBytes, getBytes, getBytes, getBytes, getBytes, getBytes, getCharSequence, getIntLE, getLongLE, getMedium, getMediumLE, getShortLE, getUnsignedByte, getUnsignedIntLE, getUnsignedMedium, getUnsignedMediumLE, getUnsignedShortLE, hasArray, hashCode, hasMemoryAddress, indexOf, internalNioBuffer, isAccessible, isContiguous, isDirect, isReadable, isReadable, isReadOnly, isWritable, isWritable, markReaderIndex, markWriterIndex, maxCapacity, maxFastWritableBytes, maxWritableBytes, memoryAddress, nioBuffer, nioBuffer, nioBufferCount, nioBuffers, nioBuffers, order, 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, refCnt, release, release, resetReaderIndex, resetWriterIndex, retain, retain, retainedDuplicate, retainedSlice, retainedSlice, setBoolean, setByte, setBytes, setBytes, setBytes, setBytes, setBytes, setBytes, setBytes, setBytes, setBytes, setCharSequence, setIndex, setIntLE, setLongLE, setMedium, setMediumLE, setShortLE, setZero, skipBytes, slice, slice, toString, toString, toString, touch, touch, unwrap, writableBytes, writeBoolean, writeByte, writeBytes, writeBytes, writeBytes, writeBytes, writeBytes, writeBytes, writeBytes, writeBytes, writeBytes, writeCharSequence, writeIntLE, writeLongLE, writeMedium, writeMediumLE, writerIndex, writerIndex, writeShortLE, writeZeroMethods inherited from class ByteBuf
asByteBuf, getDoubleLE, getFloatLE, readDoubleLE, readFloatLE, setDoubleLE, setFloatLE, writeDoubleLE, writeFloatLE
-
Constructor Details
-
UnsafeHeapSwappedByteBuf
UnsafeHeapSwappedByteBuf(AbstractByteBuf buf)
-
-
Method Details
-
idx
-
_getLong
- Specified by:
_getLongin classAbstractUnsafeSwappedByteBuf
-
_getInt
- Specified by:
_getIntin classAbstractUnsafeSwappedByteBuf
-
_getShort
- Specified by:
_getShortin classAbstractUnsafeSwappedByteBuf
-
_setShort
- Specified by:
_setShortin classAbstractUnsafeSwappedByteBuf
-
_setInt
- Specified by:
_setIntin classAbstractUnsafeSwappedByteBuf
-
_setLong
- Specified by:
_setLongin classAbstractUnsafeSwappedByteBuf
-