static short[] shortArrayFromBytes(byte[] a) { short[] b = new short[a.length/2]; for (int i = 0; i < b.length; i++) b[i] = shortFromBytes(a, i*2); ret b; }