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
stroom-bytebuffer/src/main/java/stroom/bytebuffer/hbase/UnsafeAccess.java