Enumeration (GI Flags)

GLib-2.0GLibFormatSizeFlags

Flags to modify the format of the string returned by g_format_size_full().

Index
BITS: 4

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

DEFAULT: 0

behave the same as g_format_size()

IEC_UNITS: 2

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.

LONG_FORMAT: 1

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

ONLY_UNIT: 16

Returns only the unit, without a value.

This should not be used together with G_FORMAT_SIZE_LONG_FORMAT nor G_FORMAT_SIZE_ONLY_VALUE.

2.74

ONLY_VALUE: 8

Returns only the value, without a unit.

This should not be used together with G_FORMAT_SIZE_LONG_FORMAT nor G_FORMAT_SIZE_ONLY_UNIT.

2.74