| 193 | } |
| 194 | |
| 195 | static bool loadCache(std::shared_ptr<Runtime> &rt, const void* buffer, size_t size) { |
| 196 | auto res = rt->onSetCache(buffer, size); |
| 197 | if (res) { |
| 198 | return true; |
| 199 | } |
| 200 | return false; |
| 201 | } |
| 202 | static std::pair<const void*, size_t> getCache(std::shared_ptr<Runtime> &rt) { |
| 203 | auto res = rt->onGetCache(); |
| 204 | if (res.first != nullptr) { |
no test coverage detected