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

Function write_out

compiler/src/main/mod.rs:165–170  ·  view source on GitHub ↗
(s: &str)

Source from the content-addressed store, hash-verified

163}
164
165pub(super) unsafe fn write_out(s: &str) -> usize {
166 let b = s.as_bytes();
167 let n = b.len().min(SZ);
168 with_runtime(|rt| rt.out[..n].copy_from_slice(&b[..n]));
169 n
170}
171
172/* `dispatch_*` prologue: resolve `recv_h` and run `f` against the live VM. Fails on stale handle or call outside `run()`. */
173pub(super) fn with_recv<F>(invalid_recv_msg: &'static str, recv_h: u32, f: F) -> Result<Val, VmErr>

Callers 5

extract_importsFunction · 0.85
step_vmFunction · 0.85
run_startFunction · 0.85
run_resumeFunction · 0.85
runFunction · 0.85

Calls 2

with_runtimeFunction · 0.85
lenMethod · 0.45

Tested by

no test coverage detected