Traits for storing passive arguments in byte streams. More...
#include <passiveArgumentStoreTraits.hpp>
Public Types | |
using | S = T_S |
See PassiveArgumentStoreTraits. | |
using | Store = T |
Type for the variable declaration for restoring the data. | |
using | T = T_T |
See PassiveArgumentStoreTraits. | |
Static Public Member Functions | |
static size_t | countSize (T &&value, size_t size, bool storeRequired) |
Count the required size for storing the data. | |
static void | restore (ByteDataView *store, TemporaryMemory &allocator, size_t size, bool storeRequired, Store &value) |
Restore the data for this type. | |
static void | store (ByteDataView *dataStore, TemporaryMemory &allocator, T const &value, size_t size, bool storeRequired) |
Store the data for the type in the data store. | |
Traits for storing passive arguments in byte streams.
See ActiveArgumentStoreTraits for a detailed documentation of the process.
If storeRequired
is false, nothing needs to be stored for this type and only a default initialization should be performed for the restore operation.
T_T | Type of the argument that is stored. |
T_S | Store type of the argument that is stored. |