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

Function convert_resources

document/graph-storage/src/from_runtime.rs:180–210  ·  view source on GitHub ↗

Snapshot the runtime [`ResourceRegistry`](graphene_resource::ResourceRegistry) into the storage [`ResourceStore`](crate::ResourceStore). Each source's chain position becomes a fractional [`Priority`](crate::Priority) (index-as-priority preserves order); the `DataSource` body is stored type-erased as `serde_json::Value` so its on-disk shape can migrate freely. All timestamps are `ORIGIN`, since thi

(resources: &graphene_resource::ResourceRegistry, referenced: &std::collections::HashSet<ResourceId>, peer: PeerId, registry: &mut Registry)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

convert_from_runtimeMethod · 0.85

Calls 6

infoMethod · 0.80
set_sourceMethod · 0.80
idsMethod · 0.45
containsMethod · 0.45
iterMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected