Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: cnode.h

Class CDataNoDelete

class CDataNoDelete : public CBase;

Description

Provides a wrapper around an HBufC16: the buffer is not deleted when the object is deleted.

Derivation

Members

Defined in CDataNoDelete:
CDataNoDelete(), Data(), ResetDataPointer(), SetData(), iData, ~CDataNoDelete()

Inherited from CBase:
Delete(), Extension_(), operator new()


Construction and destruction


CDataNoDelete()

inline CDataNoDelete(HBufC16 *aData);

Description

Constructor.

Parameters

HBufC16 *aData

Buffer to wrap


~CDataNoDelete()

inline virtual ~CDataNoDelete();

Description

Destructor.

The wrapped buffer is not deleted.

[Top]


Member functions


SetData()

inline HBufC16 *SetData(HBufC16 *aData);

Description

Changes the buffer that is wrapped.

Parameters

HBufC16 *aData

Buffer to wrap

Return value

HBufC16 *

The previous wrapped buffer


ResetDataPointer()

inline virtual void ResetDataPointer(HBufC16 *aData);

Description

Sets the buffer that is wrapped.

The existing value is forgotten.

Parameters

HBufC16 *aData

Buffer to wrap


Data()

inline HBufC16 *Data();

Description

Gets the wrapped buffer.

Return value

HBufC16 *

The wrapped buffer

[Top]


Member data


iData

protected: HBufC16 * iData;

Description

The wrapped buffer.