SatCat5
satcat5::test::CborParser Class Reference

Detailed Description

A simple CBOR decoder for use in unit tests.

Definition at line 95 of file sim_utils.h.

#include <sim_utils.h>

Public Member Functions

 CborParser (satcat5::io::Readable *src, bool verbose=false)
 Copy received message to local buffer.
 
QCBORItem get (const char *key) const
 Attempt to fetch top-level QCBOR item for the given key.
 
QCBORItem get (u32 key) const
 Attempt to fetch top-level QCBOR item for the given key.
 

Protected Attributes

u8 m_dat [2048]
 
unsigned m_len
 

The documentation for this class was generated from the following files: