Skip to main content

encode_graph

Function encode_graph 

Source
pub fn encode_graph(nodes: &[CommitNode]) -> Result<Vec<u8>>
Expand description

Serialize the commit graph to a self-contained Arrow IPC stream — the exact bytes decode_graph reads back. The one encoder both the sealed archive’s __gunnar_graph__ section and the live store’s objects.graph cache go through, so the two forms cannot drift (LAW 5).