Code/Framework/AzNetworking
Signed-off-by: Esteban Papp <81431996+amznestebanpapp@users.noreply.github.com>
This commit is contained in:
@@ -14,14 +14,14 @@
|
||||
#include <AzNetworking/Utilities/Endian_Platform.h>
|
||||
|
||||
#if AZ_TRAIT_NEEDS_HTONLL
|
||||
const uint64_t htonll(uint64_t value)
|
||||
inline static const uint64_t htonll(uint64_t value)
|
||||
{
|
||||
const uint32_t hiValue = htonl(static_cast<uint32_t>(value >> 32));
|
||||
const uint32_t loValue = htonl(static_cast<uint32_t>(value & 0x00000000FFFFFFFF));
|
||||
return static_cast<uint64_t>(hiValue) << 32 | static_cast<uint64_t>(loValue);
|
||||
}
|
||||
|
||||
const uint64_t ntohll(uint64_t value)
|
||||
inline static const uint64_t ntohll(uint64_t value)
|
||||
{
|
||||
return htonll(value);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user