code: public void writeInt(int value) {
  		try {
  			buffer.writeInt(4);
  			buffer.writeInt(value);
  		} catch (Exception e) {
  			throw new BinaryWriteFailedException(e);
  		}
  	}
docs: Writes primitive integer to the output stream
  
  @param value value to write