/** * Get a BE 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 getUIntBE(byte[] data, int offset) { long retNum = getIntBE(data, offset); return retNum & 0x00FFFFFFFFl; }
/** * Get a BE int value from the beginning of a byte array * * @param data the byte array * @return the int (32-bit) value */ public static int getIntBE(byte[] data) { return getIntBE(data, 0); }
/** * Get a BE 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 getUIntBE(byte[] data, int offset) { long retNum = getIntBE(data, offset); return retNum & 0x00FFFFFFFFl; }
/** * Get a BE int value from the beginning of a byte array * * @param data the byte array * @return the int (32-bit) value */ public static int getIntBE(byte[] data) { return getIntBE(data, 0); }
/** * Get a BE 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 getUIntBE(byte[] data, int offset) { long retNum = getIntBE(data, offset); return retNum & 0x00FFFFFFFFl; }
/** * Get a BE int value from the beginning of a byte array * * @param data the byte array * @return the int (32-bit) value */ public static int getIntBE(byte[] data) { return getIntBE(data, 0); }