Bitstream Interpretation Library (BIL)  0.1
Namespaces | Macros | Functions
EndianConversion.hpp File Reference

Contains functions for converting endianess. More...

#include <boost/cstdint.hpp>
Include dependency graph for EndianConversion.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  bil

Macros

#define BIL_ENDIANCONVERSION_HPP

Functions

boost::uint16_t bil::swapBigLittleEndian (const boost::uint16_t &x)
 Swaps given 16 bit value from big endian to little endian and vice versa (i.e. exchanges first octet for second).
boost::uint32_t bil::swapBigLittleEndian (const boost::uint32_t &x)
 Swaps given 32 bit value from big endian to little endian and vice versa (i.e. exchanges first octet for fourth, and second for third).
boost::uint64_t bil::swapBigLittleEndian (const boost::uint64_t &x)
 Swaps given 64 bit value from big endian to little endian and vice versa (i.e. exchanges first octet for eighth, second for seventh, third for sixth, and fourth for fifth).
template<typename type >
type bil::swapBigEndian (const type &x)
 Swaps given value from big endian to endianess of the system and vice versa.
template<typename type >
type bil::swapLittleEndian (const type &x)
 Swaps given value from little endian to endianess of the system and vice versa.

Detailed Description

Contains functions for converting endianess.

Definition in file EndianConversion.hpp.


Macro Definition Documentation

#define BIL_ENDIANCONVERSION_HPP

Definition at line 8 of file EndianConversion.hpp.