MCPcopy Create free account
hub / github.com/HaxeFoundation/hxcpp / __scriptable_cppia_from_string

Function __scriptable_cppia_from_string

src/hx/cppia/CppiaModule.cpp:623–636  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

621
622
623::hx::CppiaLoadedModule __scriptable_cppia_from_string(String inCode)
624{
625 const unsigned char *code = (const unsigned char *)inCode.raw_ptr();
626 int length = inCode.length;
627 #ifdef HX_SMART_STRINGS
628 if (inCode.isUTF16Encoded())
629 {
630 code = (const unsigned char *)inCode.utf8_str();
631 length = strlen( (const char *)code );
632 }
633 #endif
634
635 return hx::LoadCppia(code,length);
636}
637
638
639::hx::CppiaLoadedModule __scriptable_cppia_from_data(Array<unsigned char> inCode)

Callers

nothing calls this directly

Calls 2

LoadCppiaFunction · 0.85
utf8_strMethod · 0.80

Tested by

no test coverage detected