Foundation
Loading...
Searching...
No Matches
Namespaces | Classes | Functions | Variables
Foundation::Bits Namespace Reference

Header-only convenience utilities. More...

Namespaces

namespace  Ranges
 std::ranges extensions and utilities.
 
namespace  Views
 std::views extensions and utilities.
 

Classes

struct  BitmaskEnumWrapper
 Wrapper for bitmask enum types that provides bitwise operators. More...
 
struct  Variant
 Extended std::variant with C++23 visit() behavior and convenience Get()/GetIf() methods. More...
 

Functions

double getEpochTime ()
 
size_t getPerformanceCounter ()
 
consteval size_t operator""_B (unsigned long long k)
 
consteval size_t operator""_KB (unsigned long long k)
 
consteval size_t operator""_MB (unsigned long long k)
 
consteval size_t operator""_GB (unsigned long long k)
 
String formatHumanReadableSize (const uint64_t size)
 

Variables

constexpr const charkSuffixes [] { "B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB" }
 

Detailed Description

Header-only convenience utilities.

Function Documentation

◆ formatHumanReadableSize()

String Foundation::Bits::formatHumanReadableSize ( const uint64_t  size)
inline

◆ getEpochTime()

double Foundation::Bits::getEpochTime ( )
inline

◆ getPerformanceCounter()

size_t Foundation::Bits::getPerformanceCounter ( )
inline

◆ operator""_B()

consteval size_t Foundation::Bits::operator""_B ( unsigned long long  k)

◆ operator""_GB()

consteval size_t Foundation::Bits::operator""_GB ( unsigned long long  k)

◆ operator""_KB()

consteval size_t Foundation::Bits::operator""_KB ( unsigned long long  k)

◆ operator""_MB()

consteval size_t Foundation::Bits::operator""_MB ( unsigned long long  k)

Variable Documentation

◆ kSuffixes

constexpr const char* Foundation::Bits::kSuffixes[] { "B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB" }
constexpr