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

specifies a number of bits to be used to pad (add to) the current bit offset More...

#include <serdes_format_modifiers.h>

Public Member Functions

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

Public Attributes

const ST & value
 bit pad reference value
 

Detailed Description

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

specifies a number of bits to be used to pad (add to) the current bit offset

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

Constructor & Destructor Documentation

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

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

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

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

Parameters
bits

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