Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <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:

Inherited from CBase:


Construction and destruction


CDataNoDelete(HBufC16 *)

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(HBufC16 *)

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(HBufC16 *)

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.