Swi::CHashContainer Class Reference

class Swi::CHashContainer : public CBase

Serves as a container combining a hash value and a hash algorithm

Inherits from

Constructor & Destructor Documentation

CHashContainer()

CHashContainer ( ) [private]

CHashContainer(const CMessageDigest::THashId)

CHashContainer ( const CMessageDigest::THashId aAlgorithm ) [private]

Parameters

const CMessageDigest::THashId aAlgorithm

~CHashContainer()

IMPORT_C ~CHashContainer ( ) [virtual]

Destructor of CHashContainer .

Member Functions Documentation

Algorithm()

CMessageDigest::THashId Algorithm ( ) const [inline]

This method returns the algorithm used to produce the hash value.

ConstructL(const Sis::CHash &)

void ConstructL ( const Sis::CHash & aHash ) [private]

The second-phase constructor.

Parameters

const Sis::CHash & aHash the Sis::CHash to copy

ConstructL(const TDesC8 &)

void ConstructL ( const TDesC8 & aData ) [private]

The second-phase constructor.

Parameters

const TDesC8 & aData A descriptor of TDesC8 type containing the data

ConstructL(RReadStream &)

void ConstructL ( RReadStream & aStream ) [private]

The second-phase constructor.

Parameters

RReadStream & aStream An instance of a RReadStream to read the entity from.

Data()

const TDesC8 & Data ( ) const [inline]

This method returns the actual hash value.

ExternalizeL(RWriteStream &)

IMPORT_C void ExternalizeL ( RWriteStream & aStream ) const

Streams CHashContainer object contents to a stream.

Parameters

RWriteStream & aStream RWriteStream to write the entity contents to.

InternalizeL(RReadStream &)

IMPORT_C void InternalizeL ( RReadStream & aStream )

Reads a CHashContainer object contents from a stream.

Parameters

RReadStream & aStream RReadStream to read the entity from.

NewL(const Sis::CHash &)

IMPORT_C CHashContainer * NewL ( const Sis::CHash & aHash ) [static]

Creates a new CHashContainer object

Parameters

const Sis::CHash & aHash a Sis::CHash object to obtain the hash algorithm and data

NewL(const CMessageDigest::THashId, const TDesC8 &)

IMPORT_C CHashContainer * NewL ( const CMessageDigest::THashId aAlgorithm,
const TDesC8 & aData
) [static]

Creates a new CHashContainer object.

Parameters

const CMessageDigest::THashId aAlgorithm An instance of a CMessageDigest::THashId to specify the encoding algorithm
const TDesC8 & aData A descriptor of TDesC8 type containing the data

NewL(RReadStream &)

IMPORT_C CHashContainer * NewL ( RReadStream & aStream ) [static]

Creates a new CHashContainer object.

Parameters

RReadStream & aStream RReadStream to read the entity from.

NewLC(const Sis::CHash &)

IMPORT_C CHashContainer * NewLC ( const Sis::CHash & aHash ) [static]

Creates a new CHashContainer object.

Parameters

const Sis::CHash & aHash a Sis::CHash object to obtain the hash algorithm and data

NewLC(const CMessageDigest::THashId, const TDesC8 &)

IMPORT_C CHashContainer * NewLC ( const CMessageDigest::THashId aAlgorithm,
const TDesC8 & aData
) [static]

Creates a new CHashContainer object.

Parameters

const CMessageDigest::THashId aAlgorithm an instance of a CMessageDigest::THashId to specify the encoding algorithm
const TDesC8 & aData A descriptor of TDesC8 type containing the data

NewLC(RReadStream &)

IMPORT_C CHashContainer * NewLC ( RReadStream & aStream ) [static]

Creates a new CHashContainer object.

Parameters

RReadStream & aStream RReadStream to read the entity from.

SerializedSize()

TUint32 SerializedSize ( ) const [inline]

This method returns serialized size of the object

Member Data Documentation

CMessageDigest::THashId iAlgorithm

CMessageDigest::THashId iAlgorithm [private]

HBufC8 * iData

HBufC8 * iData [private]