StormByte 2.0.0
C++26 foundation of the StormByte suite
 
Loading...
Searching...
No Matches
StormByte::ByteSize::Unit Struct Reference

One-octet scale used by the named factories. More...

#include <StormByte/byte_size.hxx>

Public Member Functions

constexpr ByteSize operator() (Size count) const noexcept
 Scale count units into a ByteSize.
 

Public Attributes

std::uint64_t bytes
 Octets in one unit.
 

Detailed Description

One-octet scale used by the named factories.

Member Function Documentation

◆ operator()()

constexpr ByteSize StormByte::ByteSize::Unit::operator() ( Size  count) const
inlineconstexprnoexcept

Scale count units into a ByteSize.

Parameters
countNumber of units.
Returns
Product as ByteSize.

Member Data Documentation

◆ bytes

std::uint64_t StormByte::ByteSize::Unit::bytes

Octets in one unit.


The documentation for this struct was generated from the following file: