API Reference > Other Classes > OdPlatformStreamer Class > OdPlatformStreamer Methods > OdPlatformStreamer::getUnicodeStrFromBuffer Method
OdPlatformStreamer::getUnicodeStrFromBuffer Method
Syntax
C++
static inline OdString getUnicodeStrFromBuffer(const OdUInt8*& buffer, OdInt32 size);
Parameters 
Description 
const OdUInt8*& buffer 
[in/out] Buffer pointer to read the Unicode string from.  
OdInt32 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. 

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

 

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–2020. Open Design Alliance. All rights reserved.