Lines Matching defs:pBuf
42 char* pBuf = new(std::nothrow) char[nLen + 1];
43 if (!pBuf) {
44 ELOG("Memory allocation failed : pBuf.");
47 ZeroMemory(pBuf, nLen + 1);
48 ::WideCharToMultiByte(CP_UTF8, 0, pwBuf, nwLen, pBuf, nLen, NULL, NULL);
49 std::string retStr(pBuf);
51 delete[] pBuf;
53 pBuf = NULL;
83 char* pBuf = new(std::nothrow) char[lenAdd];
84 if (!pBuf) {
85 ELOG("Memory allocation failed : pBuf.");
88 if (EOK != memset_s(pBuf, lenAdd, 0, lenAdd)) {
89 delete []pBuf;
90 ELOG("pBuf memset_s failed.");
93 WideCharToMultiByte(CP_ACP, 0, pwBuf, nwLen, pBuf, nLen, NULL, NULL);
94 std::string retStr = pBuf;
95 delete []pBuf;
97 pBuf = NULL;