| 411 | namespace rpc_convert |
| 412 | { |
| 413 | const CRPCConvertParam* FromPosition(std::string_view method, size_t pos) |
| 414 | { |
| 415 | auto it = std::ranges::find_if(vRPCConvertParams, [&](const auto& p) { |
| 416 | return p.methodName == method && p.paramIdx == static_cast<int>(pos); |
| 417 | }); |
| 418 | |
| 419 | return it == std::end(vRPCConvertParams) ? nullptr : &*it; |
| 420 | } |
| 421 | |
| 422 | const CRPCConvertParam* FromName(std::string_view method, std::string_view name) |
| 423 | { |
no test coverage detected