if(!childAcct.reserve(size)) {
logger.warn("Unable to allocate buffer of size {} due to memory limit. Current allocation: {}", size, getAllocatedMemory(), new Exception());
return null;
};
UnsafeDirectLittleEndian buffer = innerAllocator.directBuffer(size, max);
DrillBuf wrapped = new DrillBuf(this, childAcct, buffer);
childAcct.reserved(buffer.capacity(), wrapped);
return wrapped;
}