Represents a file size.
More...
◆ FileSize() [1/2]
constexpr catapult::utils::FileSize::FileSize |
( |
uint64_t |
bytes | ) |
|
|
inlineexplicitconstexprprivate |
◆ FileSize() [2/2]
constexpr catapult::utils::FileSize::FileSize |
( |
| ) |
|
|
inlineconstexpr |
Creates a default (zero) file size.
◆ bytes()
constexpr uint64_t catapult::utils::FileSize::bytes |
( |
| ) |
const |
|
inlineconstexpr |
Returns the number of bytes.
◆ bytes32()
uint32_t catapult::utils::FileSize::bytes32 |
( |
| ) |
const |
|
inline |
Returns the number of bytes as a uint32_t.
◆ FromBytes()
static constexpr FileSize catapult::utils::FileSize::FromBytes |
( |
uint64_t |
bytes | ) |
|
|
inlinestaticconstexpr |
Creates a file size from the given number of bytes.
◆ FromKilobytes()
static constexpr FileSize catapult::utils::FileSize::FromKilobytes |
( |
uint64_t |
kilobytes | ) |
|
|
inlinestaticconstexpr |
Creates a file size from the given number of kilobytes.
◆ FromMegabytes()
static constexpr FileSize catapult::utils::FileSize::FromMegabytes |
( |
uint64_t |
megabytes | ) |
|
|
inlinestaticconstexpr |
Creates a file size from the given number of megabytes.
◆ kilobytes()
constexpr uint64_t catapult::utils::FileSize::kilobytes |
( |
| ) |
const |
|
inlineconstexpr |
Returns the number of kilobytes.
◆ megabytes()
constexpr uint64_t catapult::utils::FileSize::megabytes |
( |
| ) |
const |
|
inlineconstexpr |
Returns the number of megabytes.
◆ operator!=()
constexpr bool catapult::utils::FileSize::operator!= |
( |
const FileSize & |
rhs | ) |
const |
|
inlineconstexpr |
Returns true
if this file size is not equal to rhs.
◆ operator<()
constexpr bool catapult::utils::FileSize::operator< |
( |
const FileSize & |
rhs | ) |
const |
|
inlineconstexpr |
Returns true
if this file size is less than rhs.
◆ operator<=()
constexpr bool catapult::utils::FileSize::operator<= |
( |
const FileSize & |
rhs | ) |
const |
|
inlineconstexpr |
Returns true
if this file size is less than or equal to rhs.
◆ operator==()
constexpr bool catapult::utils::FileSize::operator== |
( |
const FileSize & |
rhs | ) |
const |
|
inlineconstexpr |
Returns true
if this file size is equal to rhs.
◆ operator>()
constexpr bool catapult::utils::FileSize::operator> |
( |
const FileSize & |
rhs | ) |
const |
|
inlineconstexpr |
Returns true
if this file size is greater than rhs.
◆ operator>=()
constexpr bool catapult::utils::FileSize::operator>= |
( |
const FileSize & |
rhs | ) |
const |
|
inlineconstexpr |
Returns true
if this file size is greater than or equal to rhs.
◆ m_bytes
uint64_t catapult::utils::FileSize::m_bytes |
|
private |
The documentation for this class was generated from the following file: