Try to ensure that the buffer is at least of a specified size, extending the buffer if necessary, and return false if the buffer cannot be allocated
bool tryExtend(ptrdiff_t newSize);
DMemBuffer Template