/** * Get a LE unsigned int value from a byte array * * @param data the byte array * @param offset a starting offset into the byte array * @return the unsigned int (32-bit) value in a long */ public static long getUIntLE(byte[] data, int offset) { long retNum = getIntLE(data, offset); return retNum & 0x00FFFFFFFFl; }
/** * Get a LE int value from the beginning of a byte array * * @param data the byte array * @return the int (32-bit) value */ public static int getIntLE(byte[] data) { return getIntLE(data, 0); }
/** * Get a LE unsigned int value from a byte array * * @param data the byte array * @param offset a starting offset into the byte array * @return the unsigned int (32-bit) value in a long */ public static long getUIntLE(byte[] data, int offset) { long retNum = getIntLE(data, offset); return retNum & 0x00FFFFFFFFl; }
/** * Get a LE int value from the beginning of a byte array * * @param data the byte array * @return the int (32-bit) value */ public static int getIntLE(byte[] data) { return getIntLE(data, 0); }
/** * Get a LE int value from the beginning of a byte array * * @param data the byte array * @return the int (32-bit) value */ public static int getIntLE(byte[] data) { return getIntLE(data, 0); }
/** * Get a LE unsigned int value from a byte array * * @param data the byte array * @param offset a starting offset into the byte array * @return the unsigned int (32-bit) value in a long */ public static long getUIntLE(byte[] data, int offset) { long retNum = getIntLE(data, offset); return retNum & 0x00FFFFFFFFl; }