Class ByteArrays

java.lang.Object
io.airlift.slice.ByteArrays

public final class ByteArrays extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static double
    getDouble(byte[] bytes, int index)
     
    static float
    getFloat(byte[] bytes, int index)
     
    static int
    getInt(byte[] bytes, int index)
     
    static long
    getLong(byte[] bytes, int index)
     
    static short
    getShort(byte[] bytes, int index)
     
    static void
    setDouble(byte[] bytes, int index, double value)
     
    static void
    setFloat(byte[] bytes, int index, float value)
     
    static void
    setInt(byte[] bytes, int index, int value)
     
    static void
    setLong(byte[] bytes, int index, long value)
     
    static void
    setShort(byte[] bytes, int index, short value)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • getShort

      public static short getShort(byte[] bytes, int index)
    • getInt

      public static int getInt(byte[] bytes, int index)
    • getLong

      public static long getLong(byte[] bytes, int index)
    • getFloat

      public static float getFloat(byte[] bytes, int index)
    • getDouble

      public static double getDouble(byte[] bytes, int index)
    • setShort

      public static void setShort(byte[] bytes, int index, short value)
    • setInt

      public static void setInt(byte[] bytes, int index, int value)
    • setLong

      public static void setLong(byte[] bytes, int index, long value)
    • setFloat

      public static void setFloat(byte[] bytes, int index, float value)
    • setDouble

      public static void setDouble(byte[] bytes, int index, double value)