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

Method get_contents

atomic-core/src/change/verified.rs:133–143  ·  view source on GitHub ↗
(
        &self,
        hash_fn: F,
        node: crate::types::GraphNode<crate::types::NodeId>,
        buf: &mut [u8],
    )

Source from the content-addressed store, hash-verified

131 }
132
133 fn get_contents<F>(
134 &self,
135 hash_fn: F,
136 node: crate::types::GraphNode<crate::types::NodeId>,
137 buf: &mut [u8],
138 ) -> Result<usize, Self::Error>
139 where
140 F: Fn(crate::types::NodeId) -> Option<Hash>,
141 {
142 self.store.get_contents(hash_fn, node, buf)
143 }
144
145 fn get_contents_ext(
146 &self,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected