CString Class Research (2)
3. CString Data Buffer
CString use CStringData structure as a buffer to store data and other information.
struct CStringData { long nRefs; // reference count int nDataLength; // length of data (including terminator) int nAllocLength; // length of allocation // TCHAR data[nAllocLength] TCHAR* data() // TCHAR* to managed data { return (TCHAR*)(this+1); } }; |
|