Bitcoin Core 31.99.0
P2P Digital Currency
Namespaces | Functions
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. More...
 
consteval uint64_t operator""_GiB (unsigned long long gibibytes)
 Conversion of GiB to bytes. More...
 

Function Documentation

◆ operator""_GiB()

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

Conversion of GiB to bytes.

Definition at line 32 of file byte_units.h.

◆ operator""_MiB()

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

Conversion of MiB to bytes.

Definition at line 26 of file byte_units.h.