@Override
        public AllocatedBuffer allocateDirectBuffer(int capacity) {
            return AllocatedBuffer.wrap(ByteBuffer.allocateDirect(capacity));
        }
An object responsible for allocation of buffers. This is an extension point to enable buffer
pooling within an application.
common/src/main/java/org/conscrypt/BufferAllocator.java