@Override
    public AllocatedBuffer allocateDirectBuffer(int capacity) {
        return new ByteBufAdapter(alloc.directBuffer(capacity));
    }
A {@link BufferAllocator} that is backed by a Netty buffer pool.
benchmark-jmh/src/jmh/java/org/conscrypt/NettyBufferAllocator.java