/** * Build a short from first 2 bytes of the array. * * @param b The byte[] to convert. * @return A short. */ public static short toShort(final byte[] b) { return (short) toUnsignedShort(b); }
/** * Build a short from first 2 bytes of the array. * * @param b The byte[] to convert. * @return A short. */ public static short toShort(final byte[] b) { return (short) toUnsignedShort(b); }
/** * Build a short from first 2 bytes of the array. * @param b The byte[] to convert. * @return A short. */ public static short toShort(final byte[] b) { return (short) toUnsignedShort(b); }
/** * Build a short from first 2 bytes of the array. * * @param b The byte[] to convert. * @return A short. */ public static short toShort(final byte[] b) { return (short) toUnsignedShort(b); }
@Override public int readUnsignedShort() throws IOException { this.readFully(buffer2); return toUnsignedShort(buffer2); }
@Override public int readUnsignedShort() throws IOException { this.readFully(buffer2); return toUnsignedShort(buffer2); }
@Override public int readUnsignedShort() throws IOException { this.readFully(buffer2); return toUnsignedShort(buffer2); }
@Override public int readUnsignedShort() throws IOException { this.readFully(buffer2); return toUnsignedShort(buffer2); }