Template class for resizable buffer of allocated items.
File
File: dstring.h
Namespace: dtSearch
Syntax
Group
Members
Methods
Method |
Description |
---|---|
Attach an existing buffer, optionally taking ownership | |
Allocate a buffer, specifying the number of items | |
Attach an existing buffer | |
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 | |
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 | |
Get start of buffer | |
Get buffer size | |
Store data in buffer | |
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 |
Methods
Method |
Description |
---|---|
Attach an existing buffer, optionally taking ownership | |
Allocate a buffer, specifying the number of items | |
Attach an existing buffer | |
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 | |
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 | |
Get start of buffer | |
Get buffer size | |
Store data in buffer | |
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 |
Remarks
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.
Class Hierarchy
dtSearch::DMemBuffer<typename Type>