DMemBuffer<typename Type> Template
Try to ensure that the buffer is at least of a specified size, extending the buffer if necessary, and throw std::bad_alloc if the buffer cannot be extended