Fetches the `StoreCode` for a given `EngineCode`.
(&self, engine_code: &EngineCode)
| 177 | |
| 178 | /// Fetches the `StoreCode` for a given `EngineCode`. |
| 179 | pub fn store_code(&self, engine_code: &EngineCode) -> Option<&StoreCode> { |
| 180 | let store_code_pc = self.store_code_base(engine_code)?; |
| 181 | let (_, code) = self.loaded_code.range(store_code_pc..).next()?; |
| 182 | Some(&code.code) |
| 183 | } |
| 184 | |
| 185 | /// Fetches the base `StoreCodePC` for a given `EngineCode`. |
| 186 | pub fn store_code_base(&self, engine_code: &EngineCode) -> Option<StoreCodePC> { |
no test coverage detected