|
RPNX::QueryGraph
Typed, memoized, concurrent query evaluation for C++23
|
Human-readable formatting utilities used by QueryGraph diagnostics. More...
#include <algorithm>#include <cmath>#include <cstddef>#include <iomanip>#include <sstream>#include <string>Go to the source code of this file.
Functions | |
| std::string | rpnx::querygraph::format_iec_bytes (std::size_t bytes) |
| Format a byte count using IEC binary units. | |
Human-readable formatting utilities used by QueryGraph diagnostics.
Definition in file byte_format.hpp.
|
inline |
Format a byte count using IEC binary units.
The result uses B, KiB, MiB, and larger IEC suffixes. Values above one byte are rounded to approximately three significant decimal digits; byte values themselves are emitted without a fractional part.
| bytes | Number of bytes to format. |
0B, 512B, 1.50KiB, or 2.00MiB. Definition at line 28 of file byte_format.hpp.