utilmm::endian Namespace Reference
[OS-related tools]
Namespaces |
namespace | details |
Functions |
template<typename S > |
S | from_big (const S source) |
template<typename S > |
void | from_big (const S source, S &dest) |
template<typename S > |
S | from_little (const S source) |
template<typename S > |
void | from_little (const S source, S &dest) |
template<typename S > |
S | from_network (const S source) |
template<typename S > |
void | from_network (const S source, S &dest) |
template<typename S > |
S | swap (const S data) |
template<typename S > |
void | swap (const S data, S &buffer) |
template<typename S > |
S | to_big (const S source) |
template<typename S > |
void | to_big (const S source, S &dest) |
template<typename S > |
S | to_little (const S source) |
template<typename S > |
void | to_little (const S source, S &dest) |
template<typename S > |
S | to_network (const S source) |
template<typename S > |
void | to_network (const S source, S &dest) |
Detailed Description
This namespace holds various tools to convert between little and big endian
Function Documentation
template<typename S >
S utilmm::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 111 of file endian.hh.
template<typename S >
void utilmm::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 107 of file endian.hh.
template<typename S >
S utilmm::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 103 of file endian.hh.
template<typename S >
void utilmm::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 99 of file endian.hh.
template<typename S >
S utilmm::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 95 of file endian.hh.
template<typename S >
void utilmm::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 91 of file endian.hh.
template<typename S >
S utilmm::endian::swap |
( |
const S |
data |
) |
[inline] |
template<typename S >
void utilmm::endian::swap |
( |
const S |
data, |
|
|
S & |
buffer | |
|
) |
| | [inline] |
template<typename S >
S utilmm::endian::to_big |
( |
const S |
source |
) |
[inline] |
template<typename S >
void utilmm::endian::to_big |
( |
const S |
source, |
|
|
S & |
dest | |
|
) |
| | [inline] |
template<typename S >
S utilmm::endian::to_little |
( |
const S |
source |
) |
[inline] |
template<typename S >
void utilmm::endian::to_little |
( |
const S |
source, |
|
|
S & |
dest | |
|
) |
| | [inline] |
template<typename S >
S utilmm::endian::to_network |
( |
const S |
source |
) |
[inline] |
template<typename S >
void utilmm::endian::to_network |
( |
const S |
source, |
|
|
S & |
dest | |
|
) |
| | [inline] |