(
&self,
store: &mut Store,
len: i32,
f: impl FnOnce(&mut Store, i32) -> Result<R>,
)
| 2896 | } |
| 2897 | |
| 2898 | fn with_allocation<R>( |
| 2899 | &self, |
| 2900 | store: &mut Store, |
| 2901 | len: i32, |
| 2902 | f: impl FnOnce(&mut Store, i32) -> Result<R>, |
| 2903 | ) -> Result<R> { |
| 2904 | let ptr = self.allocate(store, len)?; |
| 2905 | self.run_and_free(store, ptr, f) |
| 2906 | } |
| 2907 | |
| 2908 | fn allocate(&self, store: &mut Store, len: i32) -> Result<i32> { |
| 2909 | let ptr = self |
no test coverage detected