struct
#include <src/checkpoint/serializers/sizer.h>
Sizer Sizer serializers for sizing the contents of classes as a preprocessing pass before packing content so a properly sized buffer can be allocated.
Base classes
- struct BaseSerializer
- General base class for serialiers.
Constructors, destructors, conversion operators
- Sizer()
- Construct a sizer.
Public functions
- auto getSize() const -> SerialSizeType
- Get the current size.
- void contiguousBytes(void* ptr, SerialSizeType size, SerialSizeType num_elms)
- Add contiguous bytes to the sizer.
Function documentation
void checkpoint:: Sizer:: contiguousBytes(void* ptr,
SerialSizeType size,
SerialSizeType num_elms)
Add contiguous bytes to the sizer.
Parameters | |
---|---|
ptr in | the element being serialized (not used) |
size in | the number of bytes for each element |
num_elms in | the number of elements |