- // System access (meaning endian related !?)
- uint16_t SwapShort(uint16_t);
- uint32_t SwapLong(uint32_t);
- double SwapDouble(double);
- /// \brief Unswaps back the bytes of 2-bytes long integer
- /// so they agree with the processor order.
- uint16_t UnswapShort(uint16_t a) { return SwapShort(a);}
- /// \brief Unswaps back the bytes of 4-byte long integer
- /// so they agree with the processor order.
- uint32_t UnswapLong(uint32_t a) { return SwapLong(a);}