glib

Function format_size_full

Source
pub fn format_size_full(size: u64, flags: FormatSizeFlags) -> GString
Expand description

Formats a size.

This function is similar to g_format_size() but allows for flags that modify the output. See #GFormatSizeFlags.

§size

a size in bytes

§flags

#GFormatSizeFlags to modify the output

§Returns

a newly-allocated formatted string containing a human readable file size