Package io.netty.buffer
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 ByteBuf
s 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 int
Methods inherited from class io.netty.buffer.AbstractUnsafeSwappedByteBuf
getChar, getDouble, getFloat, getInt, getLong, getShort, getUnsignedInt, getUnsignedShort, setChar, setDouble, setFloat, setInt, setLong, setShort, writeChar, writeDouble, writeFloat, writeInt, writeLong, writeShort
Methods inherited from class io.netty.buffer.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, writeZero
Methods inherited from class io.netty.buffer.ByteBuf
asByteBuf, getDoubleLE, getFloatLE, readDoubleLE, readFloatLE, setDoubleLE, setFloatLE, writeDoubleLE, writeFloatLE
-
Constructor Details
-
UnsafeHeapSwappedByteBuf
UnsafeHeapSwappedByteBuf(AbstractByteBuf buf)
-
-
Method Details
-
idx
-
_getLong
- Specified by:
_getLong
in classAbstractUnsafeSwappedByteBuf
-
_getInt
- Specified by:
_getInt
in classAbstractUnsafeSwappedByteBuf
-
_getShort
- Specified by:
_getShort
in classAbstractUnsafeSwappedByteBuf
-
_setShort
- Specified by:
_setShort
in classAbstractUnsafeSwappedByteBuf
-
_setInt
- Specified by:
_setInt
in classAbstractUnsafeSwappedByteBuf
-
_setLong
- Specified by:
_setLong
in classAbstractUnsafeSwappedByteBuf
-