MCPcopy Create free account
hub / github.com/endbasic/endbasic / get

Method get

web/src/store.rs:284–287  ·  view source on GitHub ↗
(&self, name: &str)

Source from the content-addressed store, hash-verified

282 }
283
284 async fn get(&self, name: &str) -> io::Result<Vec<u8>> {
285 let entry = self.get_entry(&Key::for_name(name))?;
286 Ok(entry.content)
287 }
288
289 async fn put(&mut self, name: &str, content: &[u8]) -> io::Result<()> {
290 let key = Key::for_name(name);

Callers 5

renameMethod · 0.45
get_entryMethod · 0.45
deleteMethod · 0.45
test_webdrive_delete_okFunction · 0.45

Calls 1

get_entryMethod · 0.80

Tested by 2

test_webdrive_delete_okFunction · 0.36