C/C++ API Reference
Loading...
Searching...
No Matches
Byte units

Overview

Constants and literals for byte sizes e.g. KiB.

Functions

constexpr unsigned long long int pw::bytes::B (unsigned long long int bytes)
 
constexpr unsigned long long int pw::bytes::KiB (unsigned long long int kibibytes)
 
constexpr unsigned long long int pw::bytes::MiB (unsigned long long int mebibytes)
 
constexpr unsigned long long int pw::bytes::GiB (unsigned long long int gibibytes)
 
constexpr unsigned long long int pw::bytes::TiB (unsigned long long int tebibytes)
 
constexpr unsigned long long int pw::bytes::PiB (unsigned long long int pebibytes)
 
constexpr unsigned long long int pw::bytes::EiB (unsigned long long int exbibytes)
 

Variables

constexpr unsigned long long int pw::bytes::kBytesInKibibyte = 1ull << 10
 
constexpr unsigned long long int pw::bytes::kBytesInMebibyte = 1ull << 20
 
constexpr unsigned long long int pw::bytes::kBytesInGibibyte = 1ull << 30
 
constexpr unsigned long long int pw::bytes::kBytesInTebibyte = 1ull << 40
 
constexpr unsigned long long int pw::bytes::kBytesInPebibyte = 1ull << 50
 
constexpr unsigned long long int pw::bytes::kBytesInExbibyte = 1ull << 60