MCPcopy Create free account
hub / github.com/NtQuery/Scylla / ToUTF16

Method ToUTF16

Scylla/StringConversion.cpp:15–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13}
14
15const wchar_t* StringConversion::ToUTF16(const char* str, wchar_t* buf, size_t bufsize)
16{
17 //mbstowcs_s(buf, str, bufsize);
18 ATL::CA2W str_w = str;
19 wcsncpy_s(buf, bufsize, str_w, bufsize);
20 buf[bufsize - 1] = L'\0';
21 return buf;
22}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected