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

Method define_zeroinit

cranelift/module/src/data_context.rs:101–104  ·  view source on GitHub ↗

Define a zero-initialized object with the given size.

(&mut self, size: usize)

Source from the content-addressed store, hash-verified

99
100 /// Define a zero-initialized object with the given size.
101 pub fn define_zeroinit(&mut self, size: usize) {
102 debug_assert_eq!(self.init, Init::Uninitialized);
103 self.init = Init::Zeros { size };
104 }
105
106 /// Define an object initialized with the given contents.
107 ///

Callers 2

basic_data_contextFunction · 0.80

Calls

no outgoing calls

Tested by 2

basic_data_contextFunction · 0.64