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