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

Method new

tests/all/stack_creator.rs:22–24  ·  view source on GitHub ↗
(base: NonNull<u8>, len: usize)

Source from the content-addressed store, hash-verified

20unsafe impl Sync for CustomStack {}
21impl CustomStack {
22 fn new(base: NonNull<u8>, len: usize) -> Self {
23 CustomStack { base, len }
24 }
25}
26unsafe impl StackMemory for CustomStack {
27 fn top(&self) -> *mut u8 {

Callers

nothing calls this directly

Calls 9

OkFunction · 0.85
align_upFunction · 0.70
newFunction · 0.50
emptyFunction · 0.50
contextMethod · 0.45
allocMethod · 0.45
castMethod · 0.45
as_ptrMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected