MCPcopy Create free account
hub / github.com/dylan-sutton-chavez/edge-python / clear

Method clear

compiler/src/abi.rs:92–95  ·  view source on GitHub ↗

Reset to empty state. Called by the host between runs.

(&mut self)

Source from the content-addressed store, hash-verified

90
91 // Reset to empty state. Called by the host between runs.
92 pub fn clear(&mut self) {
93 self.slots.clear();
94 self.free_list.clear();
95 }
96
97 // Register a value. Returns a fresh handle (rc=1).
98 pub fn put(&mut self, val: u64) -> u32 {

Callers 3

kv.jsFile · 0.45
runCapabilityFunction · 0.45
resetMethod · 0.45

Calls

no outgoing calls

Tested by 1

runCapabilityFunction · 0.36