|
FlatImage
A configurable Linux containerization system
|
User-defined literals for binary (base-2) memory units. More...
Functions | |
| constexpr decltype(auto) | operator""_kib (unsigned long long value) noexcept |
| User-defined literal operator for kibibytes (KiB) | |
| constexpr decltype(auto) | operator""_mib (unsigned long long value) noexcept |
| User-defined literal operator for mebibytes (MiB) | |
User-defined literals for binary (base-2) memory units.
These operators provide convenient syntax for expressing memory sizes using binary units (powers of 1024) rather than decimal units (powers of 1000).
|
inlineconstexprnoexcept |
User-defined literal operator for kibibytes (KiB)
Converts a numeric literal to bytes by multiplying by 1024 (2^10). A kibibyte is 1024 bytes, following the IEC 60027-2 standard for binary prefixes.
| value | The numeric value in kibibytes |
Definition at line 92 of file common.hpp.
|
inlineconstexprnoexcept |
User-defined literal operator for mebibytes (MiB)
Converts a numeric literal to bytes by multiplying by 1,048,576 (2^20). A mebibyte is 1,048,576 bytes (1024 * 1024), following the IEC 60027-2 standard.
| value | The numeric value in mebibytes |
Definition at line 109 of file common.hpp.