Class NativeEndianMemoryUtil

java.lang.Object
org.apache.cassandra.utils.memory.MemoryUtil
org.apache.cassandra.utils.memory.NativeEndianMemoryUtil

public class NativeEndianMemoryUtil extends MemoryUtil
Use this API only for data which are stored in-memory and not serialized directly (without converting to Java primitives) to disk and network
  • Constructor Details

    • NativeEndianMemoryUtil

      public NativeEndianMemoryUtil()
  • Method Details

    • getUnsignedShort

      public static int getUnsignedShort(long address)
    • getInt

      public static int getInt(long address)
    • getLong

      public static long getLong(long address)
    • setShort

      public static void setShort(long address, short s)
    • setInt

      public static void setInt(long address, int l)
    • setLong

      public static void setLong(long address, long l)
    • getByteBuffer

      public static ByteBuffer getByteBuffer(long address, int length)
    • getHollowDirectByteBuffer

      public static ByteBuffer getHollowDirectByteBuffer()