public static int putByte(byte[] bytes, int offset, byte b) {
    bytes[offset] = b;
    return offset + 1;
  }
Write a single byte out to the specified byte array position.
@param bytes  the byte array
@param offset position in the array
@param b      byte to write out
@return incremented offset
hbase-common/src/main/java/org/apache/hadoop/hbase/util/Bytes.java