Bitcoin Core 32.1.0
P2P Digital Currency
Loading...
Searching...
No Matches
byte_units.h File Reference
#include <util/overflow.h>
#include <limits>
#include <stdexcept>
Include dependency graph for byte_units.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  util
namespace  util::detail

Functions

template<unsigned SHIFT>
consteval uint64_t util::detail::ByteUnitsToBytes (unsigned long long units)
consteval uint64_t operator""_MiB (unsigned long long mebibytes)
 Conversion of MiB to bytes.
consteval uint64_t operator""_GiB (unsigned long long gibibytes)
 Conversion of GiB to bytes.

Function Documentation

◆ operator""_GiB()

uint64_t operator""_GiB ( unsigned long long gibibytes)
consteval

Conversion of GiB to bytes.

Definition at line 32 of file byte_units.h.

Here is the call graph for this function:

◆ operator""_MiB()

uint64_t operator""_MiB ( unsigned long long mebibytes)
consteval

Conversion of MiB to bytes.

Definition at line 26 of file byte_units.h.

Here is the call graph for this function: