Package io.netty.buffer
Class UnsafeDirectSwappedByteBuf
- java.lang.Object
-
- io.netty.buffer.ByteBuf
-
- io.netty.buffer.SwappedByteBuf
-
- io.netty.buffer.AbstractUnsafeSwappedByteBuf
-
- io.netty.buffer.UnsafeDirectSwappedByteBuf
-
- All Implemented Interfaces:
ReferenceCounted
,java.lang.Comparable<ByteBuf>
final class UnsafeDirectSwappedByteBuf extends AbstractUnsafeSwappedByteBuf
-
-
Constructor Summary
Constructors Constructor Description UnsafeDirectSwappedByteBuf(AbstractByteBuf buf)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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 long
addr(AbstractByteBuf wrapped, int index)
-
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
getDoubleLE, getFloatLE, readDoubleLE, readFloatLE, setDoubleLE, setFloatLE, writeDoubleLE, writeFloatLE
-
-
-
-
Constructor Detail
-
UnsafeDirectSwappedByteBuf
UnsafeDirectSwappedByteBuf(AbstractByteBuf buf)
-
-
Method Detail
-
addr
private static long addr(AbstractByteBuf wrapped, int index)
-
_getLong
protected long _getLong(AbstractByteBuf wrapped, int index)
- Specified by:
_getLong
in classAbstractUnsafeSwappedByteBuf
-
_getInt
protected int _getInt(AbstractByteBuf wrapped, int index)
- Specified by:
_getInt
in classAbstractUnsafeSwappedByteBuf
-
_getShort
protected short _getShort(AbstractByteBuf wrapped, int index)
- Specified by:
_getShort
in classAbstractUnsafeSwappedByteBuf
-
_setShort
protected void _setShort(AbstractByteBuf wrapped, int index, short value)
- Specified by:
_setShort
in classAbstractUnsafeSwappedByteBuf
-
_setInt
protected void _setInt(AbstractByteBuf wrapped, int index, int value)
- Specified by:
_setInt
in classAbstractUnsafeSwappedByteBuf
-
_setLong
protected void _setLong(AbstractByteBuf wrapped, int index, long value)
- Specified by:
_setLong
in classAbstractUnsafeSwappedByteBuf
-
-