MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / deserialize_conflicts

Function deserialize_conflicts

atomic-core/src/pristine/txn/helpers.rs:27–31  ·  view source on GitHub ↗

Deserialize bytes (JSON) to a list of conflicts.

(bytes: &[u8])

Source from the content-addressed store, hash-verified

25
26/// Deserialize bytes (JSON) to a list of conflicts.
27pub fn deserialize_conflicts(bytes: &[u8]) -> PristineResult<Vec<StoredConflict>> {
28 serde_json::from_slice(bytes).map_err(|e| PristineError::Serialization {
29 message: format!("failed to deserialize conflicts: {e}"),
30 })
31}
32
33// Edge Serialization
34

Callers 4

get_conflictsMethod · 0.85
iter_conflictsMethod · 0.85
get_conflictsMethod · 0.85
iter_conflictsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected