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

Method top

tests/all/stack_creator.rs:27–29  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

25}
26unsafe impl StackMemory for CustomStack {
27 fn top(&self) -> *mut u8 {
28 unsafe { self.base.as_ptr().add(self.len) }
29 }
30 fn range(&self) -> Range<usize> {
31 let base = self.base.as_ptr() as usize;
32 base..base + self.len

Callers

nothing calls this directly

Calls 2

addMethod · 0.45
as_ptrMethod · 0.45

Tested by

no test coverage detected