/** * Get a BE short value from a byte array * * @param data the byte array * @param offset a starting offset into the byte array * @return the short (16-bit) value */ public static short getShortBE(byte[] data, int offset) { return (short) getUShortBE(data, offset); }
/** * Get a BE unsigned short value from the beginning of a byte array * * @param data the byte array * @return the unsigned short (16-bit) value in an int */ public static int getUShortBE(byte[] data) { return getUShortBE(data, 0); }
/** * Get a BE short value from a byte array * * @param data the byte array * @param offset a starting offset into the byte array * @return the short (16-bit) value */ public static short getShortBE(byte[] data, int offset) { return (short) getUShortBE(data, offset); }
/** * Get a BE unsigned short value from the beginning of a byte array * * @param data the byte array * @return the unsigned short (16-bit) value in an int */ public static int getUShortBE(byte[] data) { return getUShortBE(data, 0); }
/** * Get a BE short value from a byte array * * @param data the byte array * @param offset a starting offset into the byte array * @return the short (16-bit) value */ public static short getShortBE(byte[] data, int offset) { return (short) getUShortBE(data, offset); }
/** * Get a BE unsigned short value from the beginning of a byte array * * @param data the byte array * @return the unsigned short (16-bit) value in an int */ public static int getUShortBE(byte[] data) { return getUShortBE(data, 0); }