You are here: C++ Support Classes > dtSearch Namespace > Classes > DMemBuffer<typename Type> Template > DMemBuffer<typename Type>::extend Method
Close
dtSearch Text Retrieval Engine Programmer's Reference
DMemBuffer<typename Type>::extend Method
Syntax
C++
void extend(ptrdiff_t newSize, ptrdiff_t dataCount);

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

Copyright (c) 1995-2021 dtSearch Corp. All rights reserved.