BAN: Add network_endian_to_host

This commit is contained in:
Bananymous 2024-06-17 18:00:59 +03:00
parent 78928b7eb4
commit 17ecbca204
1 changed files with 6 additions and 0 deletions

View File

@ -108,4 +108,10 @@ namespace BAN
return host_to_big_endian(value); return host_to_big_endian(value);
} }
template<integral T>
constexpr T network_endian_to_host(T value)
{
return big_endian_to_host(value);
}
} }