code: public static byte[] integer_to_bytes(int i) {
  		final byte[] b = new byte[4];
  		b[0] = (byte) (i & 0xff);
  		i >>= 8;
  		b[1] = (byte) (i & 0xff);
  		i >>= 8;
  		b[2] = (byte) (i & 0xff);
  		i >>= 8;
  		b[3] = (byte) (i & 0xff);
  		return b;
  	}
docs: Convert a signed integer to its 4-byte representation. (little endian)