The LITE_parse_cache parse info function
| 7 | namespace lite { |
| 8 | //! The LITE_parse_cache parse info function |
| 9 | bool parse_info_cache( |
| 10 | const uint8_t* cache, size_t cache_length, bool is_fast_run_cache = true, |
| 11 | const uint8_t* binary_cache = nullptr, size_t binary_cache_length = 0) { |
| 12 | LITE_MARK_USED_VAR(binary_cache); |
| 13 | LITE_MARK_USED_VAR(binary_cache_length); |
| 14 | #if LITE_BUILD_WITH_MGE |
| 15 | if (is_fast_run_cache) { |
| 16 | mgb::PersistentCache::set_impl( |
| 17 | std::make_shared<mgb::InFilePersistentCache>(cache, cache_length)); |
| 18 | } |
| 19 | #endif |
| 20 | return true; |
| 21 | } |
| 22 | |
| 23 | } // namespace lite |
| 24 |