Package io.airlift.slice
Class ByteArrays
java.lang.Object
io.airlift.slice.ByteArrays
-
Method Summary
Modifier and TypeMethodDescriptionstatic doublegetDouble(byte[] bytes, int index) static floatgetFloat(byte[] bytes, int index) static intgetInt(byte[] bytes, int index) static longgetLong(byte[] bytes, int index) static shortgetShort(byte[] bytes, int index) static voidsetDouble(byte[] bytes, int index, double value) static voidsetFloat(byte[] bytes, int index, float value) static voidsetInt(byte[] bytes, int index, int value) static voidsetLong(byte[] bytes, int index, long value) static voidsetShort(byte[] bytes, int index, short value)
-
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)
-