(path: P, data: &[u8])
| 25 | } |
| 26 | |
| 27 | pub fn save_bytes<P: ResPathSource>(path: P, data: &[u8]) -> io::Result<()> { |
| 28 | let path = path.as_res_path_str(); |
| 29 | validate_write_path(path)?; |
| 30 | save_asset(path, data) |
| 31 | } |
| 32 | |
| 33 | pub fn save_string<P: ResPathSource>(path: P, data: &str) -> io::Result<()> { |
| 34 | save_bytes(path, data.as_bytes()) |
no test coverage detected