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

Function write

perro_source/api_modules/perro_steamworks/src/cloud.rs:66–73  ·  view source on GitHub ↗
(name: &str, bytes: &[u8])

Source from the content-addressed store, hash-verified

64}
65
66pub fn write(name: &str, bytes: &[u8]) -> Result<(), SteamError> {
67 app::with_client(|client| {
68 let mut writer = client.remote_storage().file(name).write();
69 writer
70 .write_all(bytes)
71 .map_err(|_| SteamError::CallFailed("remote_storage.write"))
72 })
73}

Calls 4

with_clientFunction · 0.85
fileMethod · 0.80
write_allMethod · 0.80
writeMethod · 0.45