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);
68 remainder -=
gib * 1024 * 1024 * 1024;
73 const std::size_t
mib = remainder / (1024 * 1024);
74 remainder -=
mib * 1024 * 1024;
83 const std::size_t
kib = remainder / 1024;
84 remainder -=
kib * 1024;
ait supplies three of the four components needed: an abstract interpreter (in this case handling func...
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