MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / GetCustomAttributes

Function GetCustomAttributes

Source/Engine/Scripting/Runtime/DotNet.cpp:226–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

224}
225
226void GetCustomAttributes(Array<MObject*, ArenaAllocation>& result, void* handle, void* getAttributesFunc)
227{
228 MObject** attributes;
229 int numAttributes;
230 CallStaticMethod<void, void*, MObject***, int*>(getAttributesFunc, handle, &attributes, &numAttributes);
231 result.Set(attributes, numAttributes);
232 MCore::GC::FreeMemory(attributes);
233}
234
235// Structures used to pass information from runtime, must match with the structures in managed side
236struct NativeClassDefinitions

Callers 1

DotNet.cppFile · 0.85

Calls 1

SetMethod · 0.45

Tested by

no test coverage detected