format_signed_bytes

Function format_signed_bytes 

Source
pub fn format_signed_bytes(value: i64) -> String
Expand description

What: Format signed bytes into human-readable string with +/- prefix.

Inputs:

  • value: Signed number of bytes to format.

Output:

  • Returns a formatted string like “+1.5 MiB” or “-512 KiB” or “0 B”.

Details:

  • Uses format_bytes for magnitude and adds +/- prefix based on sign.