diff --git a/deps/ox/src/ox/std/byteswap.hpp b/deps/ox/src/ox/std/byteswap.hpp index ab2d05d3..494d00a6 100644 --- a/deps/ox/src/ox/std/byteswap.hpp +++ b/deps/ox/src/ox/std/byteswap.hpp @@ -63,6 +63,16 @@ constexpr T conditionalByteSwap(T i) noexcept { } } +template +constexpr T toLittleEndian(T i) noexcept { + return conditionalByteSwap(i); +} + +template +constexpr T toBigEndian(T i) noexcept { + return conditionalByteSwap(i); +} + template class OX_PACKED ByteSwapInteger { private: