Template class for resizable buffer of allocated items.
template <class Type> class DMemBuffer;
dstring.h
The items must be simple types such as char or wchar_t that can be copied with memmove. For internal use by the other classes.
|
Method |
Description |
|
Allocate a specified number of the items | |
|
Attach an existing buffer, optionally taking ownership | |
|
Detach the buffer, but do not delete it, and return a pointer to the start of the buffer | |
|
This is the overview for the DMemBuffer constructor overload. | |
|
Get start of buffer | |
|
Get buffer size | |
|
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 |
|
Method |
|
Copyright (c) 1995-2012 dtSearch Corp. All rights reserved.
|