@Override
  public void writeInt(int i) throws IOException {
    checkSizeAndGrow(Bytes.SIZEOF_INT);
    ByteBufferUtils.putInt(this.curBuf, i);
  }
Writes an <code>int</code> to the underlying output stream as four bytes, high byte first.
@param i the <code>int</code> to write
@throws IOException if an I/O error occurs.
hbase-common/src/main/java/org/apache/hadoop/hbase/io/ByteBufferOutputStream.java