| 1397 | #define SetManagedBinaryModulePropertyHandle(ptr) (void*)((uintptr)ptr | ManagedBinaryModuleFieldIsPropertyBit) |
| 1398 | |
| 1399 | void 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 | |
| 1414 | void* ManagedBinaryModule::FindField(const ScriptingTypeHandle& typeHandle, const StringAnsiView& name) |
| 1415 | { |
no test coverage detected