|
static bool | IsValidChar (char ch) noexcept |
|
static void | EncodeBlock (char *pDstText, const BYTE *pSrcBin) |
|
static void | DecodeBlock (BYTE *pDstBin, const char *pSrcText) noexcept |
|
static void | EncodeBlockEnd (char *pDst, const BYTE *pSrc, size_t nSizeLeft) |
|
static StrLen_t GRAYCALL | Encode (char *pDstText, StrLen_t nLenDstMax, const BYTE *pSrcBin, size_t nSizeSrc) |
| Encode a binary blob to text string. More...
|
|
static size_t GRAYCALL | Decode (BYTE *pDstBin, size_t nSizeDst, const char *pSrcText, StrLen_t nLenSrc=-1) |
| Decode an encoded text string to a binary blob. in place is OK. More...
|
|
static char | ENC (BYTE b) |
|
static BYTE | DEC (char ch) noexcept |
|
static StrLen_t | GetTextSizeFromBinarySize (size_t nSizeBin) noexcept |
|
static size_t | GetBinarySizeFromTextSize (StrLen_t nLenText) noexcept |
|
template<class _TYPE_CH = cUUCodeChar>
class GrayLib::cBase64CoderT< _TYPE_CH >
This is a very simple binary<->text packer/unpacker. 3 to 4 ratio. NOT as nice/efficient as yEnc _TYPE_CH is the character encoder.