Function wasmer_wasix::syscalls::wasix::stack_restore::stack_restore

source ·
pub fn stack_restore<M: MemorySize>(
    ctx: FunctionEnvMut<'_, WasiEnv>,
    snapshot_ptr: WasmPtr<StackSnapshot, M>,
    val: Longsize,
) -> Result<(), WasiError>
Expand description

§stack_restore()

Restores the current stack to a previous stack described by its stack hash.

§Parameters

  • snapshot_ptr - Contains a previously made snapshot