XLL+ Class Library (6.3)

CXlIStream::ReadByteArray

Reads a byte array from the input stream

size_t ReadByteArray(
   char*& byteArray
);

Parameters

byteArray

A reference to a pointer which will be set to a new array of characters, containing the stored byte array. The array will be of the size returned by the function.

Return Value

The function returns the number if bytes in the restored byte array, or 0 if the function failed.

Remarks

If the function succeeds, and byteArray is set to a non-null value, it must be released after use:

CopyC++
if (byteArray)
    delete[] byteArray;

Requirements

Header: xlserialize.h

See Also

CXlIStream Class | CXlIStream Methods | CXlOStream::WriteByteArray