3.4 <%GFormatSizeFlags>

Flags: <%GFormatSizeFlags>

Flags to modify the format of the string returned by format-size-full.

Members

default

behave the same as format-size

long-format

include the exact number of bytes as part of the returned string. For example, "45.6 kB (45,612 bytes)".

iec-units

use IEC (base 1024) units with "KiB"-style suffixes. IEC units should only be used for reporting things with a strong "power of 2" basis, like RAM sizes or RAID stripe sizes. Network and storage sizes should be reported in the normal SI units.

bits

set the size as a quantity in bits, rather than bytes, and return units in bits. For example, ‘Mbit’ rather than ‘MB’.

only-value

return only value, without unit; this should not be used together with G-FORMAT-SIZE-LONG-FORMAT nor G-FORMAT-SIZE-ONLY-UNIT. Since: 2.74

only-unit

return only unit, without value; this should not be used together with G-FORMAT-SIZE-LONG-FORMAT nor G-FORMAT-SIZE-ONLY-VALUE. Since: 2.74