Jpp 19.3.0-rc.1
the software that should make you happy
Loading...
Searching...
No Matches
JLANG::JCRC_t< size, index, T > Struct Template Reference

Helper template data structure to evaluate CRC. More...

#include <JCRC.hh>

Static Public Member Functions

static constexpr size_t evaluate (const char *const str, size_t prev=0xFFFFFFFF)
 

Detailed Description

template<int size, int index = 0, class T = void>
struct JLANG::JCRC_t< size, index, T >

Helper template data structure to evaluate CRC.

Definition at line 71 of file JCRC.hh.

Member Function Documentation

◆ evaluate()

template<int size, int index = 0, class T = void>
static constexpr size_t JLANG::JCRC_t< size, index, T >::evaluate ( const char *const str,
size_t prev = 0xFFFFFFFF )
inlinestaticconstexpr

Definition at line 72 of file JCRC.hh.

73 {
74 return JCRC_t<size, index+1>::evaluate(str, (prev >> 8) ^ CRC[(prev ^ str[index]) & 0xFF]);
75 }
static constexpr size_t evaluate(const char *const str, size_t prev=0xFFFFFFFF)
Definition JCRC.hh:72

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