Skip to main content

format_catalog_bytes

Function format_catalog_bytes 

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

Formats a byte count into a human-readable size string paired with raw bytes for tooltip inspection.

§Arguments

  • u64 - Total payload size in bytes.

§Returns

  • String - Formatted size string (for example "1.42 MB (1488976 B)").