MFC的 CString 學習筆記 -2

發表于:2007-07-01來源:作者:點擊數: 標簽:

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); }

};

               

A CString Data Buffer (CStringData)

原文轉自:http://www.anti-gravitydesign.com

国产97人人超碰caoprom_尤物国产在线一区手机播放_精品国产一区二区三_色天使久久综合给合久久97