Close

Relief for ODA Team in Ukraine

Learn more
ODA Kernel SDK
OdPlatformStreamer::getUnicodeStrFromBuffer Method
Syntax
C++
static inline OdString getUnicodeStrFromBuffer(const OdUInt8*& buffer, OdInt32 size);

Extracts a Unicode string from buffer, and returns it as an OdString. 

 

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.

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.

Copyright © 2002-2022. Open Design Alliance All rights reserved.