Util--  1.1
Namespaces | Functions
utilmm::endian Namespace Reference

Namespaces

 details
 

Functions

template<typename S >
void swap (const S data, S &buffer)
 
template<typename S >
swap (const S data)
 
template<typename S >
void to_big (const S source, S &dest)
 
template<typename S >
to_big (const S source)
 
template<typename S >
void to_little (const S source, S &dest)
 
template<typename S >
to_little (const S source)
 
template<typename S >
void from_network (const S source, S &dest)
 
template<typename S >
from_network (const S source)
 
template<typename S >
void from_little (const S source, S &dest)
 
template<typename S >
from_little (const S source)
 
template<typename S >
void from_big (const S source, S &dest)
 
template<typename S >
from_big (const S source)
 
template<typename S >
void to_network (const S source, S &dest)
 
template<typename S >
to_network (const S source)
 

Detailed Description

This namespace holds various tools to convert between little and big endian

Function Documentation

◆ from_big() [1/2]

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

References to_big().

◆ from_big() [2/2]

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

References to_big().

◆ from_little() [1/2]

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

References to_little().

◆ from_little() [2/2]

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

References to_little().

◆ from_network() [1/2]

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

References to_network().

◆ from_network() [2/2]

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

References to_network().

◆ swap() [1/2]

template<typename S >
void utilmm::endian::swap ( const S  data,
S &  buffer 
)
inline

Referenced by swap().

◆ swap() [2/2]

template<typename S >
S utilmm::endian::swap ( const S  data)
inline

◆ to_big() [1/2]

template<typename S >
void utilmm::endian::to_big ( const S  source,
S &  dest 
)
inline

References utilmm::source().

Referenced by from_big(), swap(), and to_network().

◆ to_big() [2/2]

template<typename S >
S utilmm::endian::to_big ( const S  source)
inline

References utilmm::source().

◆ to_little() [1/2]

template<typename S >
void utilmm::endian::to_little ( const S  source,
S &  dest 
)
inline

References utilmm::source().

Referenced by from_little(), and swap().

◆ to_little() [2/2]

template<typename S >
S utilmm::endian::to_little ( const S  source)
inline

References utilmm::source().

◆ to_network() [1/2]

template<typename S >
void utilmm::endian::to_network ( const S  source,
S &  dest 
)
inline

References to_big().

Referenced by from_network().

◆ to_network() [2/2]

template<typename S >
S utilmm::endian::to_network ( const S  source)
inline

References to_big().


Generated on Mon Oct 22 2018 18:39:28 for Util-- by doxygen 1.8.13
SourceForge.net Project Page