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

Method offset

crates/wiggle/src/lib.rs:374–376  ·  view source on GitHub ↗

Returns the offset of this pointer in guest memory. Note that for sized types this returns a `u32`, but for slices and strings it returns a `(u32, u32)` pointer/length pair.

(&self)

Source from the content-addressed store, hash-verified

372 /// Note that for sized types this returns a `u32`, but for slices and
373 /// strings it returns a `(u32, u32)` pointer/length pair.
374 pub fn offset(&self) -> T::Pointer {
375 self.pointer
376 }
377
378 /// Casts this `GuestPtr` type to a different type.
379 ///

Callers 15

add_state_slot_localMethod · 0.45
state_slot_local_setMethod · 0.45
from_raw_partsMethod · 0.45
resumeMethod · 0.45
result_locationMethod · 0.45
resumeMethod · 0.45
result_locationMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected