Murl::Util::Base64Decoder Class Reference
The Base64 decoder class. More...
#include "murl_util_encoding_base64.h"
Inheritance diagram for Murl::Util::Base64Decoder:
Public Member Functions | |
Base64Decoder () | |
The default constructor. | |
UInt64 | GetDecodedLength (const void *dataIn, UInt64 byteSizeIn) const |
Compute the Base64 decoded length. More... | |
Bool | IsBase64 (const void *dataIn, UInt64 byteSizeIn) const |
Check if a memory block is Base64 encoded. More... | |
UInt64 | Decode (const void *dataIn, UInt64 byteSizeIn, void *dataOut, UInt64 byteSizeOut) |
Decode Base64 characters from a memory block. More... | |
Char | DecodeValue (Char charIn) const |
Decode a Base64 character to the 6-bit value. More... | |
Additional Inherited Members | |
Protected Types inherited from Murl::Util::Base64State | |
enum | Step { STEP_A , STEP_B , STEP_C , STEP_D } |
State enumeration. More... | |
Protected Member Functions inherited from Murl::Util::Base64State | |
Base64State () | |
The default constructor. | |
Protected Attributes inherited from Murl::Util::Base64State | |
Step | mStep |
The current state. | |
Char | mChar |
The current character. | |
Detailed Description
The Base64 decoder class.
Member Function Documentation
◆ GetDecodedLength()
Compute the Base64 decoded length.
- Parameters
-
dataIn Pointer to the Base64 source memory block. byteSizeIn The byte size of the source memory block.
- Returns
- The number of bytes required for decoding.
◆ IsBase64()
Check if a memory block is Base64 encoded.
- Parameters
-
dataIn Pointer to the Base64 source memory block. byteSizeIn The byte size of the source memory block.
- Returns
- true if the memory block is Base64 encoded.
◆ Decode()
UInt64 Murl::Util::Base64Decoder::Decode | ( | const void * | dataIn, |
UInt64 | byteSizeIn, | ||
void * | dataOut, | ||
UInt64 | byteSizeOut | ||
) |
Decode Base64 characters from a memory block.
Decoding can be called sequential for divided source blocks.
- Parameters
-
dataIn Pointer to the source memory block. byteSizeIn The byte size of the source memory block. dataOut Pointer to the destination memory block. byteSizeOut The byte size of the destination memory block.
- Returns
- The number of bytes written into destination.
◆ DecodeValue()
Decode a Base64 character to the 6-bit value.
- Parameters
-
charIn The Base64 character to decode.
- Returns
- The corresponding 6-bit value or -1 if the character is invalid.
The documentation for this class was generated from the following file:
- murl_util_encoding_base64.h