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

Method GetBufferSetLength

utilities/include/string/tstring.h:961–971  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

959 m_pszData[nNewLength] = '\0';
960 }
961 tchar* GetBufferSetLength(int nNewLength)
962 {
963 SASSERT(nNewLength >= 0);
964
965 if (GetBuffer(nNewLength) == NULL)
966 return NULL;
967
968 GetData()->nDataLength = nNewLength;
969 m_pszData[nNewLength] = '\0';
970 return m_pszData;
971 }
972 void SetLength(int nLength)
973 {
974 SASSERT(nLength >= 0);

Callers 4

trMethod · 0.80
GetWindowTextMethod · 0.80
GetFormatTextMethod · 0.80
OnInstallMethod · 0.80

Calls 1

GetDataFunction · 0.85

Tested by

no test coverage detected