TrinityCore
Trinity::Impl::GenericBaseEncoding< Encoding > Struct Template Reference

#include <BaseEncoding.h>

Static Public Member Functions

static constexpr std::size_t EncodedSize (std::size_t size)
 
static constexpr std::size_t DecodedSize (std::size_t size)
 
static std::string Encode (std::vector< uint8 > const &data)
 
static Optional< std::vector< uint8 > > Decode (std::string_view data)
 

Static Public Attributes

static constexpr std::size_t BITS_PER_CHAR = Encoding::BITS_PER_CHAR
 
static constexpr std::size_t PAD_TO = std::lcm(8u, BITS_PER_CHAR)
 
static constexpr uint8 DECODE_ERROR = Encoding::DECODE_ERROR
 
static constexpr char PADDING = Encoding::PADDING
 

Detailed Description

template<typename Encoding>
struct Trinity::Impl::GenericBaseEncoding< Encoding >

Definition at line 33 of file BaseEncoding.h.

Member Function Documentation

◆ Decode()

template<typename Encoding >
static Optional< std::vector< uint8 > > Trinity::Impl::GenericBaseEncoding< Encoding >::Decode ( std::string_view  data)
inlinestatic

Definition at line 104 of file BaseEncoding.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DecodedSize()

template<typename Encoding >
static constexpr std::size_t Trinity::Impl::GenericBaseEncoding< Encoding >::DecodedSize ( std::size_t  size)
inlinestaticconstexpr

Definition at line 51 of file BaseEncoding.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Encode()

template<typename Encoding >
static std::string Trinity::Impl::GenericBaseEncoding< Encoding >::Encode ( std::vector< uint8 > const &  data)
inlinestatic

Definition at line 59 of file BaseEncoding.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ EncodedSize()

template<typename Encoding >
static constexpr std::size_t Trinity::Impl::GenericBaseEncoding< Encoding >::EncodedSize ( std::size_t  size)
inlinestaticconstexpr

Definition at line 43 of file BaseEncoding.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ BITS_PER_CHAR

template<typename Encoding >
constexpr std::size_t Trinity::Impl::GenericBaseEncoding< Encoding >::BITS_PER_CHAR = Encoding::BITS_PER_CHAR
staticconstexpr

Definition at line 35 of file BaseEncoding.h.

◆ DECODE_ERROR

template<typename Encoding >
constexpr uint8 Trinity::Impl::GenericBaseEncoding< Encoding >::DECODE_ERROR = Encoding::DECODE_ERROR
staticconstexpr

Definition at line 40 of file BaseEncoding.h.

◆ PAD_TO

template<typename Encoding >
constexpr std::size_t Trinity::Impl::GenericBaseEncoding< Encoding >::PAD_TO = std::lcm(8u, BITS_PER_CHAR)
staticconstexpr

Definition at line 36 of file BaseEncoding.h.

◆ PADDING

template<typename Encoding >
constexpr char Trinity::Impl::GenericBaseEncoding< Encoding >::PADDING = Encoding::PADDING
staticconstexpr

Definition at line 41 of file BaseEncoding.h.


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