XLL+ Class Library (7.0)

CXlMarshaledData::Alloc

Allocates memory for a byte stream

static void* Alloc(
   size_t cbData
) const;

Parameters

cbData

Number of bytes required.

Return Value

Returns a pointer to tha allocated memory.

Remarks

This static function allocates memory for a byte stream. 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 CXlMarshaledData::Destroy() static method.

Requirements

Header: xlmarshal.h

See Also

CXlMarshaledData Class | CXlMarshaledData Methods