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

Method GetStringConstant

sdk/tests/test_feature/source/bstr.cpp:23–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21{
22public:
23 const void *GetStringConstant(const char *data, asUINT length)
24 {
25 asBSTR *str = new asBSTR;
26 *str = asBStrAlloc(length);
27 memcpy(*str, data, length);
28 return str;
29 }
30
31 int ReleaseStringConstant(const void *str)
32 {

Callers 3

AddReferencesMethod · 0.45

Calls 1

asBStrAllocFunction · 0.85

Tested by

no test coverage detected