From 17ecbca204df42e00b6dc1f831fdea6371b150a3 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Mon, 17 Jun 2024 18:00:59 +0300 Subject: [PATCH] BAN: Add network_endian_to_host --- BAN/include/BAN/Endianness.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/BAN/include/BAN/Endianness.h b/BAN/include/BAN/Endianness.h index 97a2d38501..796891afd8 100644 --- a/BAN/include/BAN/Endianness.h +++ b/BAN/include/BAN/Endianness.h @@ -108,4 +108,10 @@ namespace BAN return host_to_big_endian(value); } + template + constexpr T network_endian_to_host(T value) + { + return big_endian_to_host(value); + } + }