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 TIntDecode(const TDesC8 &, TDes8 &)
IMPORT_C TIntEncode(const TDesC8 &, TDes8 &)
Private Member Enumerations
enumanonymous { EPadChar = 64 }
enumEMaskShiftValues { ESix = 6, EFour = 4, ETwo = 2, EZero = 0 }
enumEMaskValues { ESixBitMask = 0x3F, EEightBitMask = 0xFF }

Member Functions Documentation

Decode(const TDesC8 &, TDes8 &)

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

Decode the string

Parameters

const TDesC8 & aSrcStringSource string
TDes8 & aDestStringDestination string

Encode(const TDesC8 &, TDes8 &)

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

Encode the string

Parameters

const TDesC8 & aSrcStringSource string
TDes8 & aDestStringDestination 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