#include <evo/impl/sys.h>
template<class T>
class evo::WorkBuffer< T >
Working data buffer.
- This manages a working buffer and frees it in destructor
- Pass to certain methods to optimize memory allocations with repeated calls by reusing the buffer
- If desired, call get() to pre-allocate a buffer
◆ WorkBuffer()
◆ ~WorkBuffer()
◆ get()
Get buffer pointer.
- The call allocates the initial buffer
- Additional calls with a larger size grow (reallocate) the buffer
- Parameters
-
size | Minimum required buffer size |
- Returns
- Buffer pointer
The documentation for this class was generated from the following file: