Skip to main content

format_bytes

Function format_bytes 

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

Format a size in bytes as a human-readable string (B, K, M, G). Uses binary multiples (1024-based). Two-decimal precision for K/M/G; integer for raw bytes.