MCPcopy Create free account
hub / github.com/ddnet/ddnet / SwapEndianInPlace

Function SwapEndianInPlace

src/engine/shared/datafile.cpp:30–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28static constexpr int OFFSET_UUID_TYPE = 0x8000;
29
30static inline void SwapEndianInPlace(void *pObj, size_t Size)
31{
32#if defined(CONF_ARCH_ENDIAN_BIG)
33 swap_endian(pObj, sizeof(int), Size / sizeof(int));
34#endif
35}
36
37template<typename T>
38static inline void SwapEndianInPlace(T *pObj)

Callers 4

SwapEndianIntFunction · 0.85
GetDataMethod · 0.85
OpenMethod · 0.85
FinishMethod · 0.85

Calls 1

swap_endianFunction · 0.85

Tested by

no test coverage detected