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()

UInt64 Murl::Util::Base64Decoder::GetDecodedLength ( const void *  dataIn,
UInt64  byteSizeIn 
) const

Compute the Base64 decoded length.

Parameters
dataInPointer to the Base64 source memory block.
byteSizeInThe byte size of the source memory block.
Returns
The number of bytes required for decoding.

◆ IsBase64()

Bool Murl::Util::Base64Decoder::IsBase64 ( const void *  dataIn,
UInt64  byteSizeIn 
) const

Check if a memory block is Base64 encoded.

Parameters
dataInPointer to the Base64 source memory block.
byteSizeInThe 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
dataInPointer to the source memory block.
byteSizeInThe byte size of the source memory block.
dataOutPointer to the destination memory block.
byteSizeOutThe byte size of the destination memory block.
Returns
The number of bytes written into destination.

◆ DecodeValue()

Char Murl::Util::Base64Decoder::DecodeValue ( Char  charIn) const

Decode a Base64 character to the 6-bit value.

Parameters
charInThe 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


Copyright © 2011-2024 Spraylight GmbH.