![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cBase64.h>
Static Public Member Functions | |
| 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 Public Member Functions inherited from GrayLib::cUUCodeChar | |
| static char | ENC (BYTE b) |
| static BYTE | DEC (char ch) noexcept |
Static Public Member Functions inherited from GrayLib::cBase64Coder | |
| static StrLen_t | GetTextSizeFromBinarySize (size_t nSizeBin) noexcept |
| static size_t | GetBinarySizeFromTextSize (StrLen_t nLenText) noexcept |
Additional Inherited Members | |
Public Member Functions inherited from GrayLib::cBase64Coder | |
| UNITTEST_FRIEND (cBase64) | |
Static Public Attributes inherited from GrayLib::cUUCodeChar | |
| static const char | k_chFill = (char)(' ' + 64) |
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.
|
static |
Decode an encoded text string to a binary blob. in place is OK.
Decode a text string back to it's original binary form.
|
inlinestaticnoexcept |
Take 4 encoded text chars in and output 3 binary bytes
|
static |
Encode a binary blob to text string.
Encode a binary array to text format. Take 3 bytes in and output 4 text.
|
inlinestatic |
Take 3 binary bytes in and output 4 text chars
|
inlinestatic |
|
inlinestaticnoexcept |
Is this a valid encoded Base64/UUcode char ? A-Z, a-z, 0-9, +/, with = used for padding. (64)