|
|
static constexpr out_t | calc (const uint8_t *bytes=nullptr, size_t num_bytes=0u, out_t prior_crc_value=null_crc) |
| | Calculate the checksum of some bytes, or continue an existing calculation by passing in the prior crc value.
|
| |
|
static constexpr auto & | table () |
| | the underlying pre-computed CRC table used for fast lookup-table-based calculations
|
| |
|
|
static constexpr out_t | poly = poly_arg |
| |
|
static constexpr out_t | init = init_arg |
| |
|
static constexpr bool | refl_in = refl_in_arg |
| |
|
static constexpr bool | refl_out = refl_out_arg |
| |
|
static constexpr out_t | x_or_out = x_or_out_arg |
| |
|
static constexpr out_t | null_crc = (refl_out ? reverse_bits(init) : init) ^ x_or_out |
| |
template<typename out_t, out_t poly_arg, out_t init_arg, bool refl_in_arg, bool refl_out_arg, out_t x_or_out_arg>
struct crc_utils::crc< out_t, poly_arg, init_arg, refl_in_arg, refl_out_arg, x_or_out_arg >
- Examples
- 14_custom_types.cpp.
The documentation for this struct was generated from the following file: