Get the number of locals in this frame.
(&self, mut store: impl AsContextMut)
| 564 | |
| 565 | /// Get the number of locals in this frame. |
| 566 | pub fn num_locals(&self, mut store: impl AsContextMut) -> Result<u32> { |
| 567 | let store = store.as_context_mut(); |
| 568 | let frame_data = self.frame_data(store.0.as_store_opaque())?; |
| 569 | Ok(u32::try_from(frame_data.locals.len()).unwrap()) |
| 570 | } |
| 571 | |
| 572 | /// Get the depth of the operand stack in this frame. |
| 573 | pub fn num_stacks(&self, mut store: impl AsContextMut) -> Result<u32> { |
nothing calls this directly
no test coverage detected