| 53 | |
| 54 | template <class T> |
| 55 | T 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 | |
| 69 | template <class T> |
| 70 | T SwapBE(T in) |
no outgoing calls
no test coverage detected