Package io.netty.buffer
Class VarHandleByteBufferAccess
- java.lang.Object
-
- io.netty.buffer.VarHandleByteBufferAccess
-
final class VarHandleByteBufferAccess extends java.lang.ObjectCentralizes all ByteBuffer VarHandle get/set calls so classes like UnpooledDirectByteBuf don't directly reference signature-polymorphic methods. This allows avoiding class verification failures on older Android runtimes by not loading this class when VarHandle is disabled. Methods here must only be called when PlatformDependent.hasVarHandle() is true.
-
-
Constructor Summary
Constructors Modifier Constructor Description privateVarHandleByteBufferAccess()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static intgetIntBE(byte[] memory, int index)(package private) static intgetIntBE(java.nio.ByteBuffer buffer, int index)(package private) static intgetIntLE(byte[] memory, int index)(package private) static intgetIntLE(java.nio.ByteBuffer buffer, int index)(package private) static longgetLongBE(byte[] memory, int index)(package private) static longgetLongBE(java.nio.ByteBuffer buffer, int index)(package private) static longgetLongLE(byte[] memory, int index)(package private) static longgetLongLE(java.nio.ByteBuffer buffer, int index)(package private) static shortgetShortBE(byte[] memory, int index)(package private) static shortgetShortBE(java.nio.ByteBuffer buffer, int index)(package private) static shortgetShortLE(byte[] memory, int index)(package private) static shortgetShortLE(java.nio.ByteBuffer buffer, int index)(package private) static voidsetIntBE(byte[] memory, int index, int value)(package private) static voidsetIntBE(java.nio.ByteBuffer buffer, int index, int value)(package private) static voidsetIntLE(byte[] memory, int index, int value)(package private) static voidsetIntLE(java.nio.ByteBuffer buffer, int index, int value)(package private) static voidsetLongBE(byte[] memory, int index, long value)(package private) static voidsetLongBE(java.nio.ByteBuffer buffer, int index, long value)(package private) static voidsetLongLE(byte[] memory, int index, long value)(package private) static voidsetLongLE(java.nio.ByteBuffer buffer, int index, long value)(package private) static voidsetShortBE(byte[] memory, int index, int value)(package private) static voidsetShortBE(java.nio.ByteBuffer buffer, int index, int value)(package private) static voidsetShortLE(byte[] memory, int index, int value)(package private) static voidsetShortLE(java.nio.ByteBuffer buffer, int index, int value)
-
-
-
Method Detail
-
getShortBE
static short getShortBE(java.nio.ByteBuffer buffer, int index)
-
setShortBE
static void setShortBE(java.nio.ByteBuffer buffer, int index, int value)
-
getShortLE
static short getShortLE(java.nio.ByteBuffer buffer, int index)
-
setShortLE
static void setShortLE(java.nio.ByteBuffer buffer, int index, int value)
-
getIntBE
static int getIntBE(java.nio.ByteBuffer buffer, int index)
-
setIntBE
static void setIntBE(java.nio.ByteBuffer buffer, int index, int value)
-
getIntLE
static int getIntLE(java.nio.ByteBuffer buffer, int index)
-
setIntLE
static void setIntLE(java.nio.ByteBuffer buffer, int index, int value)
-
getLongBE
static long getLongBE(java.nio.ByteBuffer buffer, int index)
-
setLongBE
static void setLongBE(java.nio.ByteBuffer buffer, int index, long value)
-
getLongLE
static long getLongLE(java.nio.ByteBuffer buffer, int index)
-
setLongLE
static void setLongLE(java.nio.ByteBuffer buffer, int index, long value)
-
getShortBE
static short getShortBE(byte[] memory, int index)
-
setShortBE
static void setShortBE(byte[] memory, int index, int value)
-
getShortLE
static short getShortLE(byte[] memory, int index)
-
setShortLE
static void setShortLE(byte[] memory, int index, int value)
-
getIntBE
static int getIntBE(byte[] memory, int index)
-
setIntBE
static void setIntBE(byte[] memory, int index, int value)
-
getIntLE
static int getIntLE(byte[] memory, int index)
-
setIntLE
static void setIntLE(byte[] memory, int index, int value)
-
getLongBE
static long getLongBE(byte[] memory, int index)
-
setLongBE
static void setLongBE(byte[] memory, int index, long value)
-
getLongLE
static long getLongLE(byte[] memory, int index)
-
setLongLE
static void setLongLE(byte[] memory, int index, long value)
-
-