get_size_for_display


Description:

public string get_size_for_display (uint64 size, bool use_pow2, bool long_string)

Utility function to get a human-readable string that represents size.

Parameters:

this

A Client.

size

Size in bytes

use_pow2

Whether power-of-two units should be used instead of power-of-ten units.

long_string

Whether to produce a long string.

Returns:

A string that should be freed with g_free.