public static void putInt(byte[] b, int off, int val) {
    b[off + 3] = (byte)(val >>> 0);
    b[off + 2] = (byte)(val >>> 8);
    b[off + 1] = (byte)(val >>> 16);
    b[off + 0] = (byte)(val >>> 24);
  }
public static void putInt(byte[] b, int off, int val)