MCPcopy Index your code
hub / github.com/GraphiteEditor/Graphite / write_single

Function write_single

document/document-format/src/io.rs:45–49  ·  view source on GitHub ↗

Encode `value` with `codec` and write to `{basename}.{ext}`. Synchronous: the write goes through the container's sync write surface (durable on folder/memory, enqueued on OPFS).

(container: &AnyContainer, basename: &str, codec: Codec, value: &T)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 6

create_inMethod · 0.85
update_manifestMethod · 0.85
persist_session_stateMethod · 0.85

Calls 3

path_forFunction · 0.85
write_singleMethod · 0.80
write_non_blockingMethod · 0.45