#include <bytesvalue.h>
The BytesValue class encapsulates the byte size.
Static Public Member Functions | |
static Result< void > | DescribeIO (const DataSerializeInterface &stream) |
Protected Member Functions | |
BytesValue (Int64 bytes) | |
Private Attributes | |
Int64 | _value |
Friends | |
BytesValue | operator* (const BytesValue a, const Int64 b) |
Int64 | operator/ (const BytesValue a, const BytesValue b) |
BytesValue | operator/ (const BytesValue a, const Int64 b) |
BytesValue | ( | ) |
Default constructor.
BytesValue | ( | const BytesValue & | src | ) |
Default constructor.
|
explicitprotected |
BytesValue& operator= | ( | const BytesValue & | src | ) |
Assignment operator.
Bool operator== | ( | const BytesValue | b | ) | const |
Compares two BytesValue.
Bool operator< | ( | const BytesValue | b | ) | const |
Compares two BytesValue.
BytesValue operator+ | ( | const BytesValue | b | ) | const |
Adds two BytesValue.
BytesValue& operator+= | ( | const BytesValue | b | ) |
Adds two BytesValue.
BytesValue operator- | ( | const BytesValue | b | ) | const |
Subtracts two BytesValue.
const BytesValue& operator-= | ( | const BytesValue | b | ) |
Subtracts two BytesValue.
Bool operator>= | ( | const BytesValue | b | ) |
Compares two BytesValue.
Bool operator<= | ( | const BytesValue | b | ) |
Compares two BytesValue.
Bool operator> | ( | const BytesValue | b | ) |
Compares two BytesValue.
Bool operator< | ( | const BytesValue | b | ) |
Compares two BytesValue.
Compares the BytesValue with an Int64.
Compares the BytesValue with an Int64.
Compares the BytesValue with an Int64.
Compares the BytesValue with an Int64.
operator Int64 | ( | ) | const |
BytesValue& operator*= | ( | const Int64 | b | ) |
Multiplies a BytesValue with a factor.
[in] | b | The second factor. |
Int64 GetBits | ( | ) | const |
Return the number of bits.
Int64 GetBytes | ( | ) | const |
Get the BytesValue
void SetBytes | ( | Int64 | bytes | ) |
Set the BytesValue
[in] | bytes | byte value |
Float32 GetKilobytes | ( | ) | const |
Get the BytesValue
Float32 GetKibibytes | ( | ) | const |
Get the BytesValue
Float32 GetMegabytes | ( | ) | const |
Get the BytesValue
Float32 GetMebibytes | ( | ) | const |
Get the BytesValue
Float32 GetGigabytes | ( | ) | const |
Get the BytesValue
Float32 GetGibibytes | ( | ) | const |
Get the BytesValue
Float32 GetTerabytes | ( | ) | const |
Get the BytesValue
Float32 GetTebibytes | ( | ) | const |
Get the BytesValue
String ToString | ( | const FormatStatement * | formatStatement = nullptr | ) | const |
Converts the value into a string.
[in] | formatStatement | Nullptr or an additional formatting instruction. See also Formatting Timer values. |
HashInt GetHashCode | ( | ) | const |
|
static |
Describe all elements of this class for I/O operations.
[in] | stream | The stream that is used to register the class members. |
|
friend |
Multiplies a BytesValue with a factor.
[in] | a | The first factor. |
[in] | b | The second factor. |
|
friend |
Divides two BytesValue and returns the quotient.
[in] | a | The dividend. |
[in] | b | The divisor. If the divisor is 0, the result will be undefined (floating point exception). |
|
friend |
Divides a BytesValue by a scalar and returns the quotient.
[in] | a | The dividend. |
[in] | b | The divisor. If the divisor is 0, the result will be undefined (floating point exception). |
|
private |