XLL+ Class Library (6.3)

CXlSerialData::Alloc

Allocates memory for a byte array

static void* Alloc(
   size_t cbData
) const;

Parameters

cbData

Number of bytes required.

Return Value

Returns a pointer to the allocated memory.

Remarks

This static function allocates memory for a byte array. This allocator should be used for any memory that will be attached to an object using the Attach() method. Unless the buffer is later attached to another object, it should be deallocated using the CXlSerialData::Destroy() static method.

Requirements

Header: xlserialize.h

See Also

CXlSerialData Class | CXlSerialData Methods