MCPcopy Create free account
hub / github.com/anjo76/angelscript / GetRawStringData

Method GetRawStringData

sdk/tests/test_feature/source/bstr.cpp:38–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36 }
37
38 int GetRawStringData(const void *str, char *data, asUINT *length) const
39 {
40 if (length) *length = asBStrLength(*reinterpret_cast<asBSTR*>(const_cast<void*>(str)));
41 if (data) memcpy(data, *reinterpret_cast<void**>(const_cast<void*>(str)), asBStrLength(*reinterpret_cast<asBSTR*>(const_cast<void*>(str))));
42 return 0;
43 }
44} bstrFactory;
45
46void RegisterBStr(asIScriptEngine *engine)

Callers 3

AddReferencesMethod · 0.45
DebugOutputMethod · 0.45

Calls 1

asBStrLengthFunction · 0.85

Tested by

no test coverage detected