MCPcopy Create free account
hub / github.com/Nariod/RustPacker / write_to_file

Function write_to_file

src/tools.rs:40–45  ·  view source on GitHub ↗
(content: &[u8], path: &Path)

Source from the content-addressed store, hash-verified

38}
39
40pub fn write_to_file(content: &[u8], path: &Path) -> Result<(), Box<dyn std::error::Error>> {
41 let mut file = File::create(path)?;
42 file.write_all(content)?;
43
44 Ok(())
45}
46
47pub fn random_u8() -> u8 {
48 rand::random()

Callers 4

encrypt_xorFunction · 0.85
encrypt_aesFunction · 0.85
encrypt_uuidFunction · 0.85

Calls

no outgoing calls

Tested by 1