/** * Transforms a passed LSB first byte array to an int * * @param bytes that should be transformed to a byte array * @param length amount of the passed {@code bytes} that should be transformed */ public static int byteArrayToInt(byte[] bytes, int length) { return byteArrayToInt(bytes, 0, length); }
/** * Transforms a passed LSB first byte array to an int * * @param bytes that should be transformed to a byte array */ public static int byteArrayToInt(byte[] bytes) { return byteArrayToInt(bytes, bytes.length); }