MCPcopy Create free account
hub / github.com/PerroEngine/Perro / load_local_bytes

Function load_local_bytes

perro_source/api_modules/perro_web/src/storage.rs:35–37  ·  view source on GitHub ↗
(key: &str)

Source from the content-addressed store, hash-verified

33}
34
35pub fn load_local_bytes(key: &str) -> io::Result<Option<Vec<u8>>> {
36 load_bytes(StorageScope::Local, key)
37}
38
39pub fn save_local_bytes(key: &str, data: &[u8]) -> io::Result<()> {
40 save_bytes(StorageScope::Local, key, data)

Callers 1

load_web_user_assetFunction · 0.85

Calls 1

load_bytesFunction · 0.70

Tested by

no test coverage detected