Utility functions to swap bytes: double, int and unsigned int. More...
Go to the source code of this file.
Namespaces | |
| namespace | te |
| TerraLib. | |
| namespace | te::common |
| Namespace for the Common module of TerraLib. | |
Functions | |
| void | te::common::Swap2Bytes (char *v) |
| It swaps an array of two bytes in local. | |
| template<class T > | |
| void | te::common::Swap2Bytes (T &v) |
| It swaps two bytes in local. | |
| void | te::common::Swap4Bytes (char *v) |
| It swaps an array of four bytes in local. | |
| template<class T > | |
| void | te::common::Swap4Bytes (T &v) |
| It swaps four bytes in local. | |
| void | te::common::Swap8Bytes (char *v) |
| It swaps an array of eight bytes in local. | |
| template<> | |
| void | te::common::SwapBytes (boost::int16_t &v) |
| It swaps 2 bytes in local. | |
| template<> | |
| void | te::common::SwapBytes (boost::int32_t &v) |
| It swaps four bytes in local. | |
| template<> | |
| void | te::common::SwapBytes (boost::uint32_t &v) |
| It swaps four bytes in local. | |
| template<> | |
| void | te::common::SwapBytes (float &v) |
| It swaps four bytes in local. | |
| template<class T > | |
| void | te::common::SwapBytes (T &v) |
| It swaps the bytes in local. | |
Utility functions to swap bytes: double, int and unsigned int.
Definition in file ByteSwapUtils.h.