MCPcopy Create free account
hub / github.com/diasurgical/DevilutionX / SwapLE

Function SwapLE

Source/loadsave.cpp:55–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53
54template <class T>
55T SwapLE(T in)
56{
57 switch (sizeof(T)) {
58 case 2:
59 return SDL_SwapLE16(in);
60 case 4:
61 return SDL_SwapLE32(in);
62 case 8:
63 return SDL_SwapLE64(in);
64 default:
65 return in;
66 }
67}
68
69template <class T>
70T SwapBE(T in)

Callers 3

NextLEMethod · 0.70
NextLENarrowMethod · 0.70
WriteLEMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected