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

Method min

crates/wasmtime/src/runtime/types.rs:3280–3283  ·  view source on GitHub ↗

Set the minimum size, in units of pages, for the memory type being built. The default minimum is `0`.

(&mut self, minimum: u64)

Source from the content-addressed store, hash-verified

3278 ///
3279 /// The default minimum is `0`.
3280 pub fn min(&mut self, minimum: u64) -> &mut Self {
3281 self.ty.limits.min = minimum;
3282 self
3283 }
3284
3285 /// Set the maximum size, in units of pages, for the memory type being
3286 /// built.

Callers 15

poll_writeMethod · 0.45
rgbDarkenFunction · 0.45
writeMethod · 0.45
fd_readdirMethod · 0.45
blocking_write_and_flushFunction · 0.45
readMethod · 0.45
poll_readMethod · 0.45
poll_writeMethod · 0.45
readMethod · 0.45
blocking_readMethod · 0.45
readMethod · 0.45
createFunction · 0.45

Calls

no outgoing calls

Tested by 7

newMethod · 0.36
shared_memory_newFunction · 0.36
shared_memory_tyFunction · 0.36
shared_memory_sizeFunction · 0.36
shared_memory_growFunction · 0.36
shared_memory_data_sizeFunction · 0.36