XLL+ Class Library

CXlSerialData::Attach

Attaches the supplied data to the object, replacing any current contents

[C++]
void Attach(
   void* pvData,
   size_t cbData
) const;

Parameters

pvData

A pointer to an array of bytes, of size cbData.

cbData

Size of array of bytes.

Remarks

This function removes the current contents and replace them with a reference to the supplied data buffer. The buffer must have been allocated using the CXlSerialData::Alloc() static method.

Requirements

Header: xlserialize.h

See Also

CXlSerialData Class | CXlSerialData Methods