ns2 Network Simulator      C++ Class Hierarchy of version ns-snapshot-20040722
Home |  Source Code |  Manual |  FAQ |  Mailing List Archive |  Search |  Download | 


Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

ns-2/mac/marshall.h File Reference


Defines

#define STORE4BYTE(x, y)
#define STORE2BYTE(x, y)
#define GET2BYTE(x)
#define GET4BYTE(x)

Define Documentation

#define GET2BYTE  
 

Value:

(((*(unsigned char *)(x)) << 8) |\
                          (*(((unsigned char *)(x))+1)))

#define GET4BYTE  
 

Value:

(((*(unsigned char *)(x)) << 24) |\
                          (*(((unsigned char *)(x))+1) << 16) |\
                          (*(((unsigned char *)(x))+2) << 8) |\
                          (*(((unsigned char *)(x))+3)))

#define STORE2BYTE x,
 
 

Value:

((*((unsigned char *)y)) = ((*x) >> 8) & 255 ,\
                          (*((unsigned char *)y+1)) = (*x) & 255 )

#define STORE4BYTE x,
 
 

Value:

((*((unsigned char *)y)) = ((*x) >> 24) & 255 ,\
                          (*((unsigned char *)y+1)) = ((*x) >> 16) & 255 ,\
                          (*((unsigned char *)y+2)) = ((*x) >> 8) & 255 ,\
                          (*((unsigned char *)y+3)) = (*x) & 255 )


This document is generated by doxygen.