MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / reserve

Method reserve

crates/environ/src/module_types.rs:149–151  ·  view source on GitHub ↗

Reserves space for `amt` more types.

(&mut self, amt: usize)

Source from the content-addressed store, hash-verified

147
148 /// Reserves space for `amt` more types.
149 pub fn reserve(&mut self, amt: usize) {
150 self.wasm_types.reserve(amt).panic_on_oom()
151 }
152
153 /// Returns the next return value of `push_rec_group`.
154 pub fn next_rec_group(&self) -> ModuleInternedRecGroupIndex {

Callers 2

visit_seqMethod · 0.45
insertMethod · 0.45

Calls 1

panic_on_oomMethod · 0.80

Tested by

no test coverage detected