MCPcopy Create free account
hub / github.com/cinience/RedisStudio / Load

Method Load

DuiLib/Core/UIMarkup.cpp:250–259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

248}
249
250bool CMarkup::Load(LPCTSTR pstrXML)
251{
252 Release();
253 SIZE_T cchLen = _tcslen(pstrXML) + 1;
254 m_pstrXML = static_cast<LPTSTR>(malloc(cchLen * sizeof(TCHAR)));
255 ::CopyMemory(m_pstrXML, pstrXML, cchLen * sizeof(TCHAR));
256 bool bRes = _Parse();
257 if( !bRes ) Release();
258 return bRes;
259}
260
261bool CMarkup::LoadFromMem(BYTE* pByte, DWORD dwSize, int encoding)
262{

Callers 1

CreateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected