Jpp  18.3.0
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Static Public Member Functions | List of all members
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

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 
)
inlinestatic

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: