XLL+ Class Library (6.3)

CXlSerialData::ReadArgs

Serializes a sequence of arguments from the stack, using the function name to define the arguments

bool ReadArgs(
   const char* pszFnName,
   void* pvFirstArg,
   bool bPrefixFn,
   int omitArgs
);

Parameters

pszFnName

Name of add-in function whose arguments are being converted to a byte array.

pvFirstArg

Address of the first argument to the add-in function. This pointer is used to traverse the argument stack, using the add-in function's registered definition to interpret the items in the stack.

bPrefixFn

If true, the name of the function will be prefixed to the byte array. This is useful if a single cache is used for more than one add-in function. If false, then the function is not prefixed. This is appropriate if each add-in function uses its own cache.

omitArgs

If non-zero, this instructs the serializer to omit the last nOmitArgs arguments in the list.

Remarks

This method iterates through the arguments of an add-in function, and writes their values to a single continuous byte array, optionally prefixed by the name of the add-in function.

Requirements

Header: xlserialize.h

See Also

CXlSerialData Class | CXlSerialData Methods