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

Method clear

cranelift/module/src/data_context.rs:89–98  ·  view source on GitHub ↗

Clear all data structures in this `DataDescription`.

(&mut self)

Source from the content-addressed store, hash-verified

87
88 /// Clear all data structures in this `DataDescription`.
89 pub fn clear(&mut self) {
90 self.init = Init::Uninitialized;
91 self.function_decls.clear();
92 self.data_decls.clear();
93 self.function_relocs.clear();
94 self.data_relocs.clear();
95 self.custom_segment_section = None;
96 self.align = None;
97 self.used = false;
98 }
99
100 /// Define a zero-initialized object with the given size.
101 pub fn define_zeroinit(&mut self, size: usize) {

Callers 3

basic_data_contextFunction · 0.45
clear_contextMethod · 0.45
clear_signatureMethod · 0.45

Calls

no outgoing calls

Tested by 1

basic_data_contextFunction · 0.36