CppSerdes  1.0
A serialization/deserialization library designed with embedded systems in mind
serdes::align< ST > Struct Template Reference

specifies a number of bits to be used to align the bit offset as a multiple of More...

#include <serdes_format_modifiers.h>

Public Member Functions

 align (const ST &bits) noexcept
 Construct a new align object, binding to a reference of the number of bits to align by. More...
 
 align (ST &&bits) noexcept
 Construct a new align object, binding to a rvalue of the number of bits to align by. More...
 

Public Attributes

const ST & value
 bit alignment reference value
 

Detailed Description

template<typename ST>
struct serdes::align< ST >

specifies a number of bits to be used to align the bit offset as a multiple of

Template Parameters
STtype of the align value
Examples:
03_serial_usage.cpp, and 05_nested_object_oriented_serial.cpp.

Constructor & Destructor Documentation

template<typename ST>
serdes::align< ST >::align ( const ST &  bits)
inlinenoexcept

Construct a new align object, binding to a reference of the number of bits to align by.

Parameters
bits
template<typename ST>
serdes::align< ST >::align ( ST &&  bits)
inlinenoexcept

Construct a new align object, binding to a rvalue of the number of bits to align by.

Parameters
bits

The documentation for this struct was generated from the following file: