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

Function encode_value

perro_source/api_modules/perro_web/src/storage.rs:96–100  ·  view source on GitHub ↗
(data: &[u8])

Source from the content-addressed store, hash-verified

94
95#[cfg(target_arch = "wasm32")]
96fn encode_value(data: &[u8]) -> String {
97 use base64::Engine as _;
98
99 base64::engine::general_purpose::STANDARD.encode(data)
100}
101
102#[cfg(target_arch = "wasm32")]
103fn decode_value(data: &str) -> io::Result<Vec<u8>> {

Callers 1

save_bytes_implFunction · 0.85

Calls 1

encodeMethod · 0.45

Tested by

no test coverage detected