(name: &str, bytes: &[u8])
| 64 | } |
| 65 | |
| 66 | pub 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 | } |