5 #include <libutl/Uint.h> 51 return ((
double)_n /
KB(1));
57 return ((
double)_n /
MB(1));
63 return ((
double)_n /
MB(1024));
#define UTL_CLASS_DEFID
Default init() and deInit() (which are merely place-holders).
String toString(const FwdIt &begin, const FwdIt &end, const String &sep, bool key=false)
Obtain a string representation of a sequence (via Object::toString()).
constexpr size_t MB(size_t n)
Convert size in megabytes to size in bytes.
static const Bytes oneMegabyte
One megabyte.
Bytes(const String &str)
Constructor.
#define UTL_CLASS_DECL(DC, BC)
Declaration of standard UTL++ functionality for a non-template class.
static const Bytes oneKilobyte
One kilobyte.
unsigned long uint64_t
Unsigned 64-bit integer.
constexpr size_t KB(size_t n)
Convert size in kilobytes to size in bytes.
static const Bytes oneGigabyte
One gigabyte.
Bytes(uint64_t bytes)
Constructor.