/** * Get a LE 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 getShortLE(byte[] data, int offset) { return (short) getUShortLE(data, offset); }
/** * Get a LE 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 getUShortLE(byte[] data) { return getUShortLE(data, 0); }
int length = EndianUtils.getUShortLE(b2); if(length > 1 && length <= MAX_SANE_TEXT_LENGTH) {
/** * Get a LE 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 getShortLE(byte[] data, int offset) { return (short) getUShortLE(data, offset); }
/** * Get a LE 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 getUShortLE(byte[] data) { return getUShortLE(data, 0); }
/** * Get a LE 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 getShortLE(byte[] data, int offset) { return (short) getUShortLE(data, offset); }
/** * Get a LE 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 getUShortLE(byte[] data) { return getUShortLE(data, 0); }
int length = EndianUtils.getUShortLE(b2); if(length > 1 && length <= MAX_SANE_TEXT_LENGTH) {
int length = EndianUtils.getUShortLE(b2); if(length > 1 && length <= MAX_SANE_TEXT_LENGTH) {