MCPcopy Create free account
hub / github.com/argumentcomputer/ix / store_string

Function store_string

crates/compile/src/compile.rs:335–337  ·  view source on GitHub ↗

Store a string as a blob and return its address.

(s: &str, stt: &CompileState)

Source from the content-addressed store, hash-verified

333 /// its canonical `addr`/`meta`; `original` captures the Lean-native form.
334 ///
335 /// Errors with `CompileError::InvalidMutualBlock` if the metadata's
336 /// self-name address does not match `name`'s compiled address — that
337 /// mismatch is structural corruption (the address map and the name
338 /// table disagree about which constant this `meta` describes) and
339 /// silently continuing would splice foreign metadata into `name`'s
340 /// Named entry.

Callers 8

compile_nameFunction · 0.85
collect_expr_tablesFunction · 0.85
compile_exprFunction · 0.85
compile_data_valueFunction · 0.85
serialize_syntax_innerFunction · 0.85
serialize_substringFunction · 0.85
serialize_preresolvedFunction · 0.85
test_store_stringFunction · 0.85

Calls 2

store_blobMethod · 0.80
as_bytesMethod · 0.80

Tested by 1

test_store_stringFunction · 0.68