mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 16:27:35 +00:00
AK: Always inline convert_between_host_and_network<T>.
This commit is contained in:
parent
e383bc6fd8
commit
a8313ae0a3
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@
|
|||
#include <AK/Types.h>
|
||||
|
||||
template<typename T>
|
||||
T convert_between_host_and_network(T host_value)
|
||||
[[gnu::always_inline]] inline T convert_between_host_and_network(T host_value)
|
||||
{
|
||||
if constexpr (sizeof(T) == 4) {
|
||||
auto* s = (byte*)&host_value;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue