MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / TEXT2CLSID

Function TEXT2CLSID

ogsr_engine/xrCore/clsid.cpp:12–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10 }
11}
12XRCORE_API CLASS_ID __stdcall TEXT2CLSID(LPCSTR text)
13{
14 VERIFY3(xr_strlen(text) <= 8, "Beer from creator CLASS_ID:", text);
15 char buf[9];
16 buf[8] = 0;
17 strncpy(buf, text, 8);
18 size_t need = 8 - xr_strlen(buf);
19 while (need)
20 {
21 buf[8 - need] = ' ';
22 need--;
23 }
24 return MK_CLSID(buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], buf[7]);
25}

Callers 9

ActivateMethod · 0.85
getCLASS_IDMethod · 0.85
load_killer_clsidsMethod · 0.85
LoadMethod · 0.85
loadMethod · 0.85
GreaterRoomInRuckMethod · 0.85
register_script_classMethod · 0.85
CSE_AbstractMethod · 0.85
r_clsidMethod · 0.85

Calls 1

xr_strlenFunction · 0.70

Tested by

no test coverage detected