ns2 Network Simulator C++ Class Hierarchy of version ns-snapshot-20040722 | |
| Home | Source Code | Manual | FAQ | Mailing List Archive | Search | | | Download | |
Defines | |
#define | STORE4BYTE(x, y) |
#define | STORE2BYTE(x, y) |
#define | GET2BYTE(x) |
#define | GET4BYTE(x) |
|
Value: (((*(unsigned char *)(x)) << 8) |\ (*(((unsigned char *)(x))+1))) |
|
Value: (((*(unsigned char *)(x)) << 24) |\ (*(((unsigned char *)(x))+1) << 16) |\ (*(((unsigned char *)(x))+2) << 8) |\ (*(((unsigned char *)(x))+3))) |
|
Value: ((*((unsigned char *)y)) = ((*x) >> 8) & 255 ,\ (*((unsigned char *)y+1)) = (*x) & 255 ) |
|
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 ) |