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

Function load_bytes

perro_source/api_modules/perro_web/src/storage.rs:10–12  ·  view source on GitHub ↗
(scope: StorageScope, key: &str)

Source from the content-addressed store, hash-verified

8}
9
10pub fn load_bytes(scope: StorageScope, key: &str) -> io::Result<Option<Vec<u8>>> {
11 load_bytes_impl(scope, key)
12}
13
14pub fn save_bytes(scope: StorageScope, key: &str, data: &[u8]) -> io::Result<()> {
15 save_bytes_impl(scope, key, data)

Callers 4

load_stringFunction · 0.70
load_local_bytesFunction · 0.70
load_session_bytesFunction · 0.70
load_cookie_bytesFunction · 0.70

Calls 1

load_bytes_implFunction · 0.85

Tested by

no test coverage detected