Namespaces | |
| namespace | Details |
Functions | |
| template<typename S > | |
| void | from_big (const S source, S &dest) |
| template<typename S > | |
| S | from_big (const S source) |
| template<typename S > | |
| void | from_little (const S source, S &dest) |
| template<typename S > | |
| S | from_little (const S source) |
| template<typename S > | |
| void | from_network (const S source, S &dest) |
| template<typename S > | |
| S | from_network (const S source) |
| template<typename S > | |
| void | swap (const S data, S &buffer) |
| template<typename S > | |
| S | swap (const S data) |
| template<typename S > | |
| void | to_network (const S source, S &dest) |
| template<typename S > | |
| S | to_network (const S source) |
This namespace holds various tools to convert between little and big endian
| void Typelib::Endian::from_big | ( | const S | source, |
| S & | dest | ||
| ) | [inline] |
Converts source, which is in big endian, into native byte order and saves the result into dest
Definition at line 109 of file endian_swap.hh.
| S Typelib::Endian::from_big | ( | const S | source | ) | [inline] |
Converts source, which is in big endian, into native byte order and returns the result
Definition at line 113 of file endian_swap.hh.
| void Typelib::Endian::from_little | ( | const S | source, |
| S & | dest | ||
| ) | [inline] |
Converts source, which is in little endian, into native byte order and saves the result into dest
Definition at line 101 of file endian_swap.hh.
| S Typelib::Endian::from_little | ( | const S | source | ) | [inline] |
Converts source, which is in little endian, into native byte order and returns the result
Definition at line 105 of file endian_swap.hh.
| void Typelib::Endian::from_network | ( | const S | source, |
| S & | dest | ||
| ) | [inline] |
Converts source, which is in network byte order, into native byte order and saves the result into dest
Definition at line 93 of file endian_swap.hh.
| S Typelib::Endian::from_network | ( | const S | source | ) | [inline] |
Converts source, which is in network byte order, into native byte order and returns the result
Definition at line 97 of file endian_swap.hh.
| void Typelib::Endian::swap | ( | const S | data, |
| S & | buffer | ||
| ) | [inline] |
Definition at line 46 of file endian_swap.hh.
| S Typelib::Endian::swap | ( | const S | data | ) | [inline] |
Definition at line 54 of file endian_swap.hh.
| void Typelib::Endian::to_network | ( | const S | source, |
| S & | dest | ||
| ) | [inline] |
Definition at line 116 of file endian_swap.hh.
| S Typelib::Endian::to_network | ( | const S | source | ) | [inline] |
Definition at line 118 of file endian_swap.hh.