Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
GrayLib::cBase64Coder Struct Reference

#include <cBase64.h>

Inheritance diagram for GrayLib::cBase64Coder:
GrayLib::cBase64Char GrayLib::cUUCodeChar GrayLib::cBase64CoderT< _TYPE_CH >

Public Member Functions

 UNITTEST_FRIEND (cBase64)
 

Static Public Member Functions

static StrLen_t GetTextSizeFromBinarySize (size_t nSizeBin) noexcept
 
static size_t GetBinarySizeFromTextSize (StrLen_t nLenText) noexcept
 

Detailed Description

Base class for Base64 encoding, as well as UUCode encoding.

Member Function Documentation

◆ GetBinarySizeFromTextSize()

static size_t GrayLib::cBase64Coder::GetBinarySizeFromTextSize ( StrLen_t  nLenText)
inlinestaticnoexcept
Note
Text size MUST be multiple of 4 !! will be padded with =
Returns
size in bytes. Decode() may actually return a smaller number if padded data.

◆ GetTextSizeFromBinarySize()

static StrLen_t GrayLib::cBase64Coder::GetTextSizeFromBinarySize ( size_t  nSizeBin)
inlinestaticnoexcept

how much text to hold this binary data ? round up for unaligned(3) data. padded with 0's

Note
must add +1 for null terminator.
Returns
size in chars.

◆ UNITTEST_FRIEND()

GrayLib::cBase64Coder::UNITTEST_FRIEND ( cBase64  )

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