BSUL::Base64Codec Class Reference

class BSUL::Base64Codec

This class is used for Base64 based encoding and decoding . This class provides a method for encoding and decoding

Public Member Functions
IMPORT_C TInt Decode (const TDesC8 &, TDes8 &)
IMPORT_C TInt Encode (const TDesC8 &, TDes8 &)
Private Member Enumerations
enum anonymous { EPadChar  = 64 }
enum EMaskShiftValues { ESix  = 6, EFour  = 4, ETwo  = 2, EZero  = 0 }
enum EMaskValues { ESixBitMask  = 0x3F, EEightBitMask  = 0xFF }

Member Functions Documentation

Decode(const TDesC8 &, TDes8 &)

IMPORT_C TInt Decode ( const TDesC8 & aSrcString,
TDes8 & aDestString
) [static]

Decode the string

Parameters

const TDesC8 & aSrcString Source string
TDes8 & aDestString Destination string

Encode(const TDesC8 &, TDes8 &)

IMPORT_C TInt Encode ( const TDesC8 & aSrcString,
TDes8 & aDestString
) [static]

Encode the string

Parameters

const TDesC8 & aSrcString Source string
TDes8 & aDestString Destination string

Member Enumerations Documentation

Enum anonymous

This enum is used as padding charcter

Enumerators

EPadChar = 64

Enum EMaskShiftValues

This is the list of shift values used for encoding and decoding

Enumerators

ESix = 6
EFour = 4
ETwo = 2
EZero = 0

Enum EMaskValues

This is the list of Bitmask used for encoding and decoding

Enumerators

ESixBitMask = 0x3F
EEightBitMask = 0xFF