public static void freeDirectBuffer(ByteBuffer buffer) {
    // here we just use the method in netty
    PlatformDependent.freeDirectBuffer(buffer);
  }
Put a byte value out to the specified BB position in big-endian format.
@param buf    the byte buffer
@param offset position in the buffer
@param b      byte to write out
@return incremented offset
hbase-common/src/main/java/org/apache/hadoop/hbase/util/UnsafeAccess.java