pub fn write_host_data(path: &Path, data: &HostData) -> Result<u64>Expand description
Write data to path in the binary format documented at the module level.
Truncates any existing file. Returns the number of bytes written so callers can surface a “wrote N MiB” log line.