emlabcpp
modern opinionated embedded C++ library
emlabcpp::cobs_decoder Struct Reference

#include <cobs.h>

Public Member Functions

std::optional< std::byte > get (std::byte inpt) const
 
bool non_value_byte ()
 
void advance (std::byte inpt)
 
std::optional< std::byte > iter (std::byte inpt)
 
 cobs_decoder ()=default
 
 cobs_decoder (std::byte b)
 

Public Attributes

bool nonzero = false
 
uint8_t offset = 1
 

Constructor & Destructor Documentation

◆ cobs_decoder() [1/2]

emlabcpp::cobs_decoder::cobs_decoder ( )
default

◆ cobs_decoder() [2/2]

emlabcpp::cobs_decoder::cobs_decoder ( std::byte  b)
inline

Member Function Documentation

◆ advance()

void emlabcpp::cobs_decoder::advance ( std::byte  inpt)
inline

References nonzero, and offset.

◆ get()

std::optional< std::byte > emlabcpp::cobs_decoder::get ( std::byte  inpt) const
inline

References nonzero, and offset.

◆ iter()

std::optional< std::byte > emlabcpp::cobs_decoder::iter ( std::byte  inpt)
inline

References advance(), and get().

◆ non_value_byte()

bool emlabcpp::cobs_decoder::non_value_byte ( )
inline

References nonzero, and offset.

Member Data Documentation

◆ nonzero

bool emlabcpp::cobs_decoder::nonzero = false

◆ offset

uint8_t emlabcpp::cobs_decoder::offset = 1

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