final class UnsafeHeapSwappedByteBuf extends AbstractUnsafeSwappedByteBuf
SwappedByteBuf
for ByteBuf
s that use unsafe to access the byte array.Constructor and Description |
---|
UnsafeHeapSwappedByteBuf(AbstractByteBuf buf) |
Modifier and Type | Method and 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 int |
idx(ByteBuf wrapped,
int index) |
getChar, getDouble, getFloat, getInt, getLong, getShort, getUnsignedInt, getUnsignedShort, setChar, setDouble, setFloat, setInt, setLong, setShort, writeChar, writeDouble, writeFloat, writeInt, writeLong, writeShort
alloc, array, arrayOffset, 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, getMedium, getUnsignedByte, getUnsignedMedium, hasArray, hashCode, hasMemoryAddress, indexOf, internalNioBuffer, isDirect, isReadable, isReadable, isWritable, isWritable, markReaderIndex, markWriterIndex, maxCapacity, maxWritableBytes, memoryAddress, nioBuffer, nioBuffer, nioBufferCount, nioBuffers, nioBuffers, order, order, 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, refCnt, release, release, resetReaderIndex, resetWriterIndex, retain, retain, setBoolean, setByte, setBytes, setBytes, setBytes, setBytes, setBytes, setBytes, setBytes, setBytes, setIndex, setMedium, setZero, skipBytes, slice, slice, toString, toString, toString, unwrap, writableBytes, writeBoolean, writeByte, writeBytes, writeBytes, writeBytes, writeBytes, writeBytes, writeBytes, writeBytes, writeBytes, writeMedium, writerIndex, writerIndex, writeZero
UnsafeHeapSwappedByteBuf(AbstractByteBuf buf)
private static int idx(ByteBuf wrapped, int index)
protected long _getLong(AbstractByteBuf wrapped, int index)
_getLong
in class AbstractUnsafeSwappedByteBuf
protected int _getInt(AbstractByteBuf wrapped, int index)
_getInt
in class AbstractUnsafeSwappedByteBuf
protected short _getShort(AbstractByteBuf wrapped, int index)
_getShort
in class AbstractUnsafeSwappedByteBuf
protected void _setShort(AbstractByteBuf wrapped, int index, short value)
_setShort
in class AbstractUnsafeSwappedByteBuf
protected void _setInt(AbstractByteBuf wrapped, int index, int value)
_setInt
in class AbstractUnsafeSwappedByteBuf
protected void _setLong(AbstractByteBuf wrapped, int index, long value)
_setLong
in class AbstractUnsafeSwappedByteBuf