Main Page | Class List | File List | Class Members | File Members

xrit_swap.h File Reference

#include <stdint.h>
#include <arpa/inet.h>

Go to the source code of this file.

Functions

uint64_t ntohll (uint64_t n)
 converts a 64-bits integer from its network representation (big endian) to its host representation.

uint64_t htonll (uint64_t n)
 converts a 64-bits integer from its host representation to its network (big endian) representation.

float ntoh_float (float net_float)
 converts a simple precision floating point number (32 bits) from its network (big endian) representation to its host representation.

float hton_float (float host_float)
 converts a simple precision floating point number (32 bits) from its host representation to its network (big endian) representation.

double ntoh_double (double net_double)
 converts a double precision floating point number (64 bits) from its network (big endian) representation to its host representation.

double hton_double (double host_double)
 converts a double precision floating point number (64 bits) from its host representation to its network (big endian) representation.


Detailed Description

an interface for the big/little endian conversion of long long integers (64 bits) and floating point numbers

Function Documentation

double hton_double double  host_double  ) 
 

converts a double precision floating point number (64 bits) from its host representation to its network (big endian) representation.

float hton_float float  host_float  ) 
 

converts a simple precision floating point number (32 bits) from its host representation to its network (big endian) representation.

uint64_t htonll uint64_t  n  ) 
 

converts a 64-bits integer from its host representation to its network (big endian) representation.

double ntoh_double double  net_double  ) 
 

converts a double precision floating point number (64 bits) from its network (big endian) representation to its host representation.

float ntoh_float float  net_float  ) 
 

converts a simple precision floating point number (32 bits) from its network (big endian) representation to its host representation.

uint64_t ntohll uint64_t  n  ) 
 

converts a 64-bits integer from its network representation (big endian) to its host representation.


Generated on Wed Oct 19 13:55:57 2005 for LibXRIT by doxygen 1.3.5