code: public void writeBoolean(boolean value) {
  		try {
  			buffer.writeInt(1);
  			if (value) {
  				buffer.writeByte(1);
  			} else {
  				buffer.writeByte(0);
  			}
  		} catch (Exception e) {
  			throw new BinaryWriteFailedException(e);
  		}
  	}
docs: Writes primitive boolean to the output stream
  
  @param value value to write