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

Method GetFields

Source/Engine/Scripting/BinaryModule.cpp:1399–1412  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1397#define SetManagedBinaryModulePropertyHandle(ptr) (void*)((uintptr)ptr | ManagedBinaryModuleFieldIsPropertyBit)
1398
1399void ManagedBinaryModule::GetFields(const ScriptingTypeHandle& typeHandle, Array<void*>& fields)
1400{
1401 const ScriptingType& type = typeHandle.GetType();
1402 if (type.ManagedClass)
1403 {
1404 const auto& mFields = type.ManagedClass->GetFields();
1405 const auto& mProperties = type.ManagedClass->GetProperties();
1406 fields.EnsureCapacity(fields.Count() + mFields.Count() + mProperties.Count());
1407 for (MField* field : mFields)
1408 fields.Add(field);
1409 for (MProperty* property : mProperties)
1410 fields.Add(SetManagedBinaryModulePropertyHandle(property));
1411 }
1412}
1413
1414void* ManagedBinaryModule::FindField(const ScriptingTypeHandle& typeHandle, const StringAnsiView& name)
1415{

Callers 8

GetClassFieldsMethod · 0.45
IsBlittableMethod · 0.45
MarshalHelperMethod · 0.45
InitStructureMethod · 0.45
PrettyPrintMethod · 0.45
FindDebugCommandsFunction · 0.45
CreatePropertiesMethod · 0.45

Calls 5

GetTypeMethod · 0.45
GetPropertiesMethod · 0.45
EnsureCapacityMethod · 0.45
CountMethod · 0.45
AddMethod · 0.45

Tested by

no test coverage detected