class TBase64 |
Base64 encoding and decoding class.
Public Member Functions | |
---|---|
TBase64() | |
IMPORT_C TBool | Decode(const TDesC8 &, TDes8 &) |
IMPORT_C TInt | Encode(const TDesC8 &, TDes8 &) |
IMPORT_C TInt | PortableEncode(const TDesC8 &, TDes8 &, TInt) |
Private Member Enumerations | |
---|---|
enum | anonymous { EPadChar = 64 } |
enum | EMaskShiftValues { ESix = 6, EFour = 4, ETwo = 2, EZero = 0 } |
enum | EMaskValues { ESixBitMask = 0x3F, EEightBitMask = 0xFF } |
Private Attributes | |
---|---|
TInt | iMaskShiftStored |
TInt | iShiftStored |
IMPORT_C TBool | Decode | ( | const TDesC8 & | aSrcString, |
TDes8 & | rDestString | |||
) |
Decodes the Base64 string to ASCII pattern.
IMPORT_C TInt | Encode | ( | const TDesC8 & | aSrcString, |
TDes8 & | rDestString | |||
) |
Encodes an ASCII string to Base64 string.
IMPORT_C TInt | PortableEncode | ( | const TDesC8 & | aSrcString, |
TDes8 & | aDestString, | |||
TInt | aLineLength = -1 | |||
) |
Encodes an ASCII string to Base64 string.
const TDesC8 & aSrcString | The source string in ASCII. |
TDes8 & aDestString | The destination string with converted base64 values. |
TInt aLineLength = -1 | The maximum line length of the encoded base64 values. A CR/LF sequence will be added after these many characters. The default value is -1, which means no CR/LF is added to output. The encoding is compliant with RFC 4648 |
enum for EMaskShiftValues
ESix = 6 |
enum for 6 |
EFour = 4 |
enum for 4 |
ETwo = 2 |
enum for 2 |
EZero = 0 |
enum for 0 |
enum for EMaskValues
ESixBitMask = 0x3F |
Mask Six bits |
EEightBitMask = 0xFF |
Mask Eight bits |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.