FormatBytes

Function FormatBytes 

Source
pub fn FormatBytes(Bytes: u64) -> String
Expand description

Format bytes as human-readable size

Converts a byte count to a human-readable format with appropriate units.

§Arguments

  • Bytes - Number of bytes

§Returns

Formatted string (e.g., “1.5 MB”, “256 B”)