HDK
|
#include <dataBuffer.h>
Public Member Functions | |
TraceDataBuffer (size_t allocSize=DefaultAllocSize) | |
template<typename T > | |
const T * | StoreData (const T &value) |
const char * | StoreData (const char *str) |
Static Public Attributes | |
static constexpr size_t | DefaultAllocSize = 1024 |
This class stores copies of data that are associated with TraceEvent instances. Data stored in the buffer must be copy constructible and trivially destructible.
Definition at line 51 of file dataBuffer.h.
|
inline |
Constructor. The buffer will make allocations of allocSize
.
Definition at line 57 of file dataBuffer.h.
Makes a copy of value
and returns a pointer to it.
Definition at line 62 of file dataBuffer.h.
|
inline |
Makes a copy of str
and returns a pointer to it. Specialization for c strings.
Definition at line 73 of file dataBuffer.h.
|
static |
Definition at line 53 of file dataBuffer.h.