|
Crunch
A Message Definition Language for Getting Things Right
|
Simple XOR parity integrity policy. More...
#include <crunch_integrity.hpp>
Static Public Member Functions | |
| static constexpr std::size_t | size () noexcept |
| static constexpr auto | calculate (std::span< const std::byte > data) noexcept -> std::array< std::byte, 1 > |
| Calculates XOR parity. | |
Simple XOR parity integrity policy.
Adds 1 byte of overhead. XORs all bytes together for a simple parity check.
|
inlinestaticconstexprnoexcept |
Calculates XOR parity.
| data | The byte span to calculate parity over. |