Package io.airlift.slice
Class ByteArrays
- java.lang.Object
-
- io.airlift.slice.ByteArrays
-
public final class ByteArrays extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 Detail
-
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)
-
-