You are here: C++ Support Classes > dtSearch Namespace > Classes > DMemBuffer<typename Type> Template > DMemBuffer<typename Type>::tryExtend Method
Close
dtSearch Text Retrieval Engine Programmer's Reference
DMemBuffer<typename Type>::tryExtend Method
Syntax
C++
bool tryExtend(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 return false if the buffer cannot be allocated

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