API Reference > Structs, Records, Enums > OdStringData Structure
OdStringData Structure
Syntax
C++
struct OdStringData { OdRefCounter nRefs; int nDataLength; int nAllocLength; OdChar* unicodeBuffer; char* ansiString; };

OdString.h

Members 
Description 
OdRefCounter nRefs; 
Number of references to this string. 
int nDataLength; 
String length in characters, omitting the 0 terminator. 
int nAllocLength; 
String allocation length in characters, omitting the 0 terminator. 
OdChar* unicodeBuffer; 
Underlying OdChar array (buffer) of this StringData object. 
char* ansiString; 
Underlying char array (buffer) of this StringData object. 

This structure contains string data used by OdString.

An OdChar array (buffer) is allocated along with this structure, and is freed when this structure is freed. 

Corresponding C++ library: TD_Root

Copyright © 2002–2020. Open Design Alliance. All rights reserved.