(&mut self)
| 2272 | } |
| 2273 | |
| 2274 | pub fn memory_slot_allocator(&mut self) -> MemorySlotAllocator { |
| 2275 | let memory_slot_free_list = Arc::clone(&self.memory_slot_free_list); |
| 2276 | let next_memory_slot = Arc::clone(&self.next_memory_slot); |
| 2277 | MemorySlotAllocator::new(next_memory_slot, memory_slot_free_list) |
| 2278 | } |
| 2279 | |
| 2280 | pub fn allocate_memory_slot(&mut self) -> u32 { |
| 2281 | self.memory_slot_allocator().next_memory_slot() |
no test coverage detected