| 651 | } |
| 652 | |
| 653 | ComponentType* FindComponentType(Register* regist, HResourceType resource_type, uint32_t* index) |
| 654 | { |
| 655 | for (uint32_t i = 0; i < regist->m_ComponentTypeCount; ++i) |
| 656 | { |
| 657 | ComponentType* ct = ®ist->m_ComponentTypes[i]; |
| 658 | if (ct->m_ResourceType == resource_type) |
| 659 | { |
| 660 | if (index != 0x0) |
| 661 | *index = i; |
| 662 | return ct; |
| 663 | } |
| 664 | } |
| 665 | return 0; |
| 666 | } |
| 667 | |
| 668 | uint32_t GetNumComponentTypes(HRegister regist) |
| 669 | { |
no outgoing calls
no test coverage detected