|
SlHelpers
|
A helper to convert units. More...
#include <Misc.h>
Static Public Member Functions | |
| static std::string | human (const size_t bytes, const unsigned precision=2, const bool fixed=true) noexcept |
Convert bytes into human readable form (1 Kib, 20.5 MiB, ...) More... | |
A helper to convert units.
|
inlinestaticnoexcept |
Convert bytes into human readable form (1 Kib, 20.5 MiB, ...)
| bytes | Value to convert |
| precision | Count of numbers after a dot |
| fixed | If std::fixed should be used |
bytes.