55 return bytes / (1024 * 1024);
60 return bytes / (1024 * 1024 * 1024);
66 std::ostringstream out;
67 const std::size_t gib =
remainder / (1024 * 1024 * 1024);
73 const std::size_t mib =
remainder / (1024 * 1024);
87 if(mib > 0 || gib > 0)
93 if(gib > 0 || mib > 0 || kib > 0)
std::size_t get_bytes() const
std::size_t get_kibibytes() const
memory_sizet & operator=(const memory_sizet &)
static const char * si_gibibyte_symbol
memory_sizet operator+(const memory_sizet &) const
std::string to_string() const
static const char * si_kibibyte_symbol
std::size_t get_gibibytes() const
static const char * si_mebibyte_symbol
static memory_sizet from_bytes(std::size_t bytes)
std::size_t get_mebibytes() const
memory_sizet & operator+=(const memory_sizet &)
static const char * si_byte_symbol
double remainder(double x, double y)