Skip to main content

format_bytes

Function format_bytes 

Source
pub fn format_bytes(bytes: u64) -> String
Expand description

Format a byte count with IEC binary units.

All Hermes user-facing size logs use this formatter so a MiB always means 1,048,576 bytes and the precision is consistent across subsystems.