|
template<typename T > |
NetworkTypeTrait< T >::Type | hostToNetwork (const T &value) |
| Converts a value from host byte order to network byte order. More...
|
|
template<> |
NetworkTypeTrait< float >::Type | hostToNetwork< float > (const float &value) |
| Specialization for float. More...
|
|
template<> |
NetworkTypeTrait< double >::Type | hostToNetwork< double > (const double &value) |
| Specialization for double. More...
|
|
template<typename T > |
T | networkToHost (const typename NetworkTypeTrait< T >::Type &value) |
| Converts a value from network byte order to host byte order. More...
|
|
template<> |
float | networkToHost (const NetworkTypeTrait< float >::Type &value) |
| Specialization for float. More...
|
|
template<> |
double | networkToHost (const NetworkTypeTrait< double >::Type &value) |
| Specialization for double. More...
|
|
Utilities for byte order conversion between little and big endian.
- Author
- Tim Langner
- Date
- 2010/06/28