Enumeration
GLibFormatSizeFlags
Members
-
G_FORMAT_SIZE_DEFAULT -
Behave the same as g_format_size().
- Value:
0 - Available since: 2.0
- Value:
-
G_FORMAT_SIZE_LONG_FORMAT -
Include the exact number of bytes as part of the returned string. For example, “45.6 kB (45,612 bytes)”.
- Value:
1 - Available since: 2.0
- Value:
-
G_FORMAT_SIZE_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.
- Value:
2 - Available since: 2.0
- Value:
-
G_FORMAT_SIZE_BITS -
Set the size as a quantity in bits, rather than bytes, and return units in bits. For example, ‘Mbit’ rather than ‘MB’.
- Value:
4 - Available since: 2.0
- Value:
-
G_FORMAT_SIZE_ONLY_VALUE -
Returns only the value, without a unit.
This should not be used together with
G_FORMAT_SIZE_LONG_FORMATnorG_FORMAT_SIZE_ONLY_UNIT.- Value:
8 - Available since: 2.74
- Value:
-
G_FORMAT_SIZE_ONLY_UNIT -
Returns only the unit, without a value.
This should not be used together with
G_FORMAT_SIZE_LONG_FORMATnorG_FORMAT_SIZE_ONLY_VALUE.- Value:
16 - Available since: 2.74
- Value: