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

Function load_bytes_impl

perro_source/api_modules/perro_web/src/storage.rs:72–77  ·  view source on GitHub ↗
(_: StorageScope, _: &str)

Source from the content-addressed store, hash-verified

70
71#[cfg(not(target_arch = "wasm32"))]
72fn load_bytes_impl(_: StorageScope, _: &str) -> io::Result<Option<Vec<u8>>> {
73 Err(io::Error::new(
74 io::ErrorKind::Unsupported,
75 "web storage requires wasm32 target",
76 ))
77}
78
79#[cfg(not(target_arch = "wasm32"))]
80fn save_bytes_impl(_: StorageScope, _: &str, _: &[u8]) -> io::Result<()> {

Callers 1

load_bytesFunction · 0.85

Calls 4

local_storageFunction · 0.85
session_storageFunction · 0.85
load_cookie_valueFunction · 0.85
transposeMethod · 0.80

Tested by

no test coverage detected