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

Function load_bytes

perro_source/api_modules/perro_modules/src/file.rs:18–20  ·  view source on GitHub ↗
(path: P)

Source from the content-addressed store, hash-verified

16}
17
18pub fn load_bytes<P: ResPathSource>(path: P) -> io::Result<Vec<u8>> {
19 load_asset(path.as_res_path_str())
20}
21
22pub fn load_string<P: ResPathSource>(path: P) -> io::Result<String> {
23 let bytes = load_bytes(path)?;

Callers 1

load_stringFunction · 0.70

Calls 2

load_assetFunction · 0.85
as_res_path_strMethod · 0.80

Tested by

no test coverage detected