FACT++  1.0
ByteOrder.h File Reference
#include <string.h>
#include <arpa/inet.h>
#include <vector>
#include <algorithm>
#include <typeinfo>
#include <stdexcept>
+ Include dependency graph for ByteOrder.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<typename S >
void reset (S &s)
 
template<typename S >
void init (S &s)
 
template<typename S >
void hton (S &s)
 
template<typename S >
void ntoh (S &s)
 
template<typename S >
NtoH (const S &s)
 
template<typename S >
HtoN (const S &s)
 
template<typename S >
void ntohcpy (const std::vector< uint16_t > &vec, S &s)
 
template<typename S >
std::vector< uint16_t > htoncpy (const S &s)
 
template<typename T , typename S >
void bitcpy (T *target, size_t ntarget, const S *source, size_t nsource, size_t ss=0, size_t ts=0)
 
template<typename T >
void Reverse (T *t)