diff --git a/BAN/include/BAN/Endianness.h b/BAN/include/BAN/Endianness.h index 061c298054..97a2d38501 100644 --- a/BAN/include/BAN/Endianness.h +++ b/BAN/include/BAN/Endianness.h @@ -45,6 +45,12 @@ namespace BAN #endif } + template + constexpr T little_endian_to_host(T value) + { + return host_to_little_endian(value); + } + template constexpr T host_to_big_endian(T value) { @@ -55,6 +61,12 @@ namespace BAN #endif } + template + constexpr T big_endian_to_host(T value) + { + return host_to_big_endian(value); + } + template struct LittleEndian {