MCPcopy Create free account
hub / github.com/SOUI2/soui / ReleaseBuffer

Method ReleaseBuffer

utilities/include/string/tstring.h:949–960  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

947 return m_pszData;
948 }
949 void ReleaseBuffer(int nNewLength = -1)
950 {
951 CopyBeforeWrite(); // just in case GetBuffer was not called
952
953 if (nNewLength == -1)
954 nNewLength = SafeStrlen(m_pszData); // zero terminated
955
956 TStringData* pData = GetData();
957 SASSERT(nNewLength <= pData->nAllocLength);
958 pData->nDataLength = nNewLength;
959 m_pszData[nNewLength] = '\0';
960 }
961 tchar* GetBufferSetLength(int nNewLength)
962 {
963 SASSERT(nNewLength >= 0);

Callers 11

trMethod · 0.80
STabSliderClass · 0.80
GetWindowTextMethod · 0.80
CreateChildrenMethod · 0.80
AppendFormatTextMethod · 0.80
GetFormatTextMethod · 0.80
GetDirectoryFunction · 0.80
GetFirstPathNameFunction · 0.80
GetNextPathNameFunction · 0.80
OnInstallMethod · 0.80

Calls 1

GetDataFunction · 0.85

Tested by

no test coverage detected