BSUL::Base64Codec Class Reference

#include <bsul/clientmessage.h>

Link against: bsul.lib

class BSUL::Base64Codec
Public Member Functions
IMPORT_C TIntDecode(const TDesC8 &, TDes8 &)
IMPORT_C TIntEncode(const TDesC8 &, TDes8 &)

Detailed Description

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

Member Function Documentation

Decode ( const TDesC8 &, TDes8 & )

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

Decode the string

Parameters
aSrcStringSource string
aDestStringDestination string
Return Value
1 if aSrcString is not long enough to decode fully, resulting in the storage of the last character and requiring another aSrcString (poss 0 length) to be passed to it to clear this character. 0 if the line was decoded OK or the end of the encoded file is reached ie "="

Encode ( const TDesC8 &, TDes8 & )

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

Encode the string

Parameters
aSrcStringSource string
aDestStringDestination string
Return Value
1 if aSrcString is not long enough to encode fully 0 if the line was encoded OK