format_size


Description:

public string format_size (uint64 size, FormatSizeFlags flags = DEFAULT)

Formats a size.

This function is similar to g_format_size but allows for flags that modify the output. See FormatSizeFlags.

Parameters:

size

a size in bytes

flags

FormatSizeFlags to modify the output

Returns:

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


Namespace: GLib
Package: glib-2.0