Extracts a Unicode string from buffer, and returns it as an OdString.
Parameters
Parameters
Description
buffer
[in/out] Buffer pointer to read the Unicode string from.
size
[in] Length of the Unicode string in characters (assumes 2 byte characters in buffer stored in little endian format), or -1 if the string is null terminated.
Remarks
The buffer pointer is incremented to the next byte past the string that was read in. If size is > 0, size * 2 bytes will be read. If size is -1, a null terminated string will be read from buffer, including the null byte.