#include <StormByte/cstring.hxx>
#include <StormByte/type_traits.hxx>
#include <StormByte/visibility.h>
#include <cassert>
#include <compare>
#include <cstddef>
#include <cstdint>
#include <limits>
#include <ostream>
#include <string>
Go to the source code of this file.
|
| template<Type::Integral T> |
| constexpr Size | StormByte::operator* (T count, Unit unit) noexcept |
| | Scale unit by an integer count.
|
| |
| template<Type::Integral T> |
| constexpr Size | StormByte::operator* (Unit unit, T count) noexcept |
| | Scale unit by an integer count.
|
| |
| template<Type::Integral T> |
| constexpr Size | StormByte::operator* (T count, const Size &size) noexcept |
| | Scale size by a positive integer.
|
| |
| template<Type::Integral T> |
| constexpr Size | StormByte::operator* (const Size &size, T count) noexcept |
| | Scale size by a positive integer.
|
| |
| template<Type::Integral T> |
| constexpr std::uint64_t | StormByte::operator/ (const Size &size, T count) noexcept |
| | How many pieces of count bytes fit in size.
|
| |
| template<Type::Integral T> |
| constexpr std::uint64_t | StormByte::operator% (const Size &size, T count) noexcept |
| | Leftover bytes after splitting size into pieces of count bytes.
|
| |
| std::ostream & | StormByte::operator<< (std::ostream &stream, const Size &size) |
| | Writes the IEC text of size.
|
| |