static short shortFromBytes_littleEndian(byte[] a, int i) { ret (short) (ubyteToInt(a[i+1]) << 8 | ubyteToInt(a[i])); }