| 31 | } |
| 32 | |
| 33 | JPAResource *JPAResourceManager::getResource(u16 idx) const |
| 34 | { |
| 35 | for (u16 res_idx = 0; res_idx < resRegNum; res_idx++) |
| 36 | { |
| 37 | JPAResource *res = pResAry[res_idx]; |
| 38 | if (idx == res->getUsrIdx()) |
| 39 | return res; |
| 40 | } |
| 41 | |
| 42 | return nullptr; |
| 43 | } |
| 44 | |
| 45 | bool JPAResourceManager::checkUserIndexDuplication(u16) const |
| 46 | { |
no test coverage detected