xentara-utils v2.0.4
The Xentara Utility Library
|
Functions | |
template<typename Value > requires std::is_trivial_v<Value> | |
auto | swap (Value value) -> Value |
Swaps the bytes of a value. | |
template<std::endian kEndian, typename Value > requires std::is_trivial_v<Value> | |
auto | convert (Value value) -> Value |
Converts a value to a certain endianness. | |
auto xentara::utils::tools::byteSwap::convert | ( | Value | value | ) | -> Value |
Converts a value to a certain endianness.
value | the value |
auto xentara::utils::tools::byteSwap::swap | ( | Value | value | ) | -> Value |
Swaps the bytes of a value.
value | the value |