APIs
::etl::span<uint8_t const> load(::etl::span<uint8_t const> const mem);
Before performing any operation on the blob data, it is important to validate this data.
This is enabled by checkHeader(). Called during blob loading and initialization,
checkHeader() checks the version and magic number of the blob, and assigns the blob’s size.
This size is later checked in the constructor of Blob.
bool checkHeader(::etl::span<uint8_t const> blob, Header& header);
The checkCrc(), also called during blob loading, uses etl::crc32 (standard CRC-32).
It re-computes the CRC on the configuration’s data and compares it against the previously
computed CRC bytes at the end of the configuration’s data.
bool checkCrc(::etl::span<uint8_t const> config);