code: public void writeBigInteger(BigInteger bi) throws IOException {
  		byte[] raw = bi.toByteArray();
  
  		writeInt(raw.length);
  		write(raw);
  	}
docs: Write a BigInteger to the array.
  
  @param bi
  @throws IOException