Is there an Unreal engine version of htons() and related endian conversion functions? I’m writing socket code that converts from network order to little endian order and I can’t find any documentation suggesting that theres anything for this. I’m using these includes currently for the functions but they mess up some macros and I doubt that it supports all of the platforms UE ships to
I’m wondering the same thing. All I found was FGenericPlatformProperties::IsLittleEndian. Then I swap them manually… I don’t want to risk hitting a platform without htons.