soui 5.0.0.1
Soui5 Doc
 
Loading...
Searching...
No Matches
sstringdata.h
1#ifndef __SSTRINGDATA__H__
2#define __SSTRINGDATA__H__
3#include "utilities-def.h"
4
5SNSBEGIN
6
7struct TStringData
8{
9 int nRefs; // Reference count: negative == locked
10 int nDataLength; // Length of currently used data in XCHARs (not including terminating null)
11 int nAllocLength; // Length of allocated data in XCHARs (not including terminating null)
12
13 void* data() const;
14
15 void AddRef();
16 void Release();
17 bool IsShared() const;
18 bool IsLocked() const;
19
20 void Lock();
21 void Unlock();
22
23 static TStringData* InitDataNil();
24 static const void* InitPszNil();
25};
26
27SNSEND
28#endif // __SSTRINGDATA__H__