| java.lang.Object com.mckoi.util.ByteArrayUtil
ByteArrayUtil | public class ByteArrayUtil (Code) | | Static utilities for byte arrays.
author: Tobias Downer |
Method Summary | |
final public static char | getChar(byte[] arr, int offset) Returns the chart at the given offset of the byte array. | final public static int | getInt(byte[] arr, int offset) Returns the int at the given offset of the byte array. | final public static long | getLong(byte[] arr, int offset) Returns the long at the given offset of the byte array. | final public static short | getShort(byte[] arr, int offset) Returns the short at the given offset of the byte array. | final public static void | setChar(char value, byte[] arr, int offset) Sets the short at the given offset of the byte array. | final public static void | setInt(int value, byte[] arr, int offset) Sets the int at the given offset of the byte array. | final public static void | setLong(long value, byte[] arr, int offset) Sets the long at the given offset of the byte array. | final public static void | setShort(short value, byte[] arr, int offset) Sets the short at the given offset of the byte array. |
getChar | final public static char getChar(byte[] arr, int offset)(Code) | | Returns the chart at the given offset of the byte array.
|
getInt | final public static int getInt(byte[] arr, int offset)(Code) | | Returns the int at the given offset of the byte array.
|
getLong | final public static long getLong(byte[] arr, int offset)(Code) | | Returns the long at the given offset of the byte array.
|
getShort | final public static short getShort(byte[] arr, int offset)(Code) | | Returns the short at the given offset of the byte array.
|
setChar | final public static void setChar(char value, byte[] arr, int offset)(Code) | | Sets the short at the given offset of the byte array.
|
setInt | final public static void setInt(int value, byte[] arr, int offset)(Code) | | Sets the int at the given offset of the byte array.
|
setLong | final public static void setLong(long value, byte[] arr, int offset)(Code) | | Sets the long at the given offset of the byte array.
|
setShort | final public static void setShort(short value, byte[] arr, int offset)(Code) | | Sets the short at the given offset of the byte array.
|
|
|