|
RAVENNAKIT
|
Custom 48 bit unsigned integer type. More...
#include <uint48.hpp>
Public Member Functions | |
| uint48_t ()=default | |
| uint48_t (uint64_t value) | |
| Construct an uint48_t from a uint64_t value. | |
| operator uint64_t () const | |
| Get a uint64_t representation of the int48_t. | |
| const uint8_t * | data () const |
| uint64_t | to_uint64 () const |
| bool | operator== (const uint48_t &other) const |
| bool | operator!= (const uint48_t &other) const |
| bool | operator< (const uint48_t &other) const |
| bool | operator> (const uint48_t &other) const |
| bool | operator<= (const uint48_t &other) const |
| bool | operator>= (const uint48_t &other) const |
Custom 48 bit unsigned integer type.
Primarily used for PTP, but can be used for other purposes.
Definition at line 36 of file uint48.hpp.
|
default |
|
inline |
Construct an uint48_t from a uint64_t value.
The value is truncated to 48 bits.
| value | The value to store in the uint48_t. |
Definition at line 45 of file uint48.hpp.
|
inlinenodiscard |
Definition at line 61 of file uint48.hpp.
|
inlineexplicit |
Get a uint64_t representation of the int48_t.
Definition at line 52 of file uint48.hpp.
|
inlinenodiscard |
Definition at line 76 of file uint48.hpp.
|
inlinenodiscard |
Definition at line 80 of file uint48.hpp.
|
inlinenodiscard |
Definition at line 88 of file uint48.hpp.
|
inlinenodiscard |
Definition at line 72 of file uint48.hpp.
|
inlinenodiscard |
Definition at line 84 of file uint48.hpp.
|
inlinenodiscard |
Definition at line 92 of file uint48.hpp.
|
inlinenodiscard |
Definition at line 68 of file uint48.hpp.