utility namespace

this namespace contains various helper utilities to aid you.

namespaces

binary
contains various utilities in helping you to convert to, and from a byte stream.
geometry
various geometry and geometry related operation utilities.
platform
platform specific utilities that help in identifying the current platform, and various specifications of it.
string
utility namespace to deal with psl::string operations.
templates

classes

debug
contains some debug information, such as trace information, as well as utilities to debug.

functions

crc32<…>
compile-time crc32 checksum calculator for the input characters.
public constexpr static
crc32<…>
crc32 checksum calculator for the input characters.
public constexpr static
crc64<…>
compile-time crc64 checksum calculator for the input characters.
public constexpr static
crc64<…>
crc64 checksum calculator for the input characters.
public constexpr static
crc64
crc64 checksum calculator for the input characters.
public constexpr static
crc32
crc32 checksum calculator for the input characters.
public constexpr static

variables

uint32_t
crc32_table
32 bit crc checksum table.
constexprconstexprpublicpublicstaticstatic
uint64_t
crc64_table
64 bit crc checksum table.
constexprconstexprpublicpublicstaticstatic

Function documentation

template<size_t length>
static uint32_t utility::crc32(char const (&str)[length]) constexpr

Brief

compile-time crc32 checksum calculator for the input characters.

Template parameters
length the length of the character array.
Parameters
str in the characters to calculate the crc32 for.
Returns 32 bit unsigned integer containing the crc32 value.

template<size_t length>
static uint32_t utility::crc32(char const* str) constexpr

Brief

crc32 checksum calculator for the input characters.

Template parameters
length the length of the character array.
Parameters
str in the characters to calculate the crc32 for.
Returns 32 bit unsigned integer containing the crc32 value.

template<size_t length>
static uint64_t utility::crc64(char const (&str)[length]) constexpr

Brief

compile-time crc64 checksum calculator for the input characters.

Template parameters
length the length of the character array.
Parameters
str in the characters to calculate the crc64 for.
Returns 64 bit unsigned integer containing the crc64 value.

template<size_t length>
static uint64_t utility::crc64(char const* str) constexpr

Brief

crc64 checksum calculator for the input characters.

Template parameters
length the length of the character array.
Parameters
str in the characters to calculate the crc64 for.
Returns 64 bit unsigned integer containing the crc64 value.

static uint64_t utility::crc64(psl::string8::view str) constexpr

Brief

crc64 checksum calculator for the input characters.

Parameters
str in the characters to calculate the crc64 for.
Returns 64 bit unsigned integer containing the crc64 value.

static uint32_t utility::crc32(psl::string8::view str) constexpr

Brief

crc32 checksum calculator for the input characters.

Parameters
str in the characters to calculate the crc32 for.
Returns 32 bit unsigned integer containing the crc32 value.