#include "proxytrace.h"Include dependency graph for my-endian.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Functions | |
| int | IsLittleEndian (void) |
| void | ToOtherEndian (TEntry *e) |
|
|
Definition at line 26 of file my-endian.cc. Referenced by main().
00026 {
00027 static const unsigned long long_number = 1;
00028 return *(const unsigned char *)&long_number;
00029 }
|
|
|
Definition at line 32 of file my-endian.cc. References _TEntry::event_duration, _TEntry::method, method_t, _TEntry::protocol, protocol_t, rotate4(), _TEntry::status, swap2(), u_4bytes, and url. Referenced by main().
00032 {
00033
00034 /* unroll this loop if you want to enumerate u_4bytes members of TEntry_v2 */
00035 u_4bytes *p;
00036 for (p = &(e -> head.event_duration); p <= &(e -> url); p++)
00037 *p = rotate4(*p);
00038
00039 e -> tail.status = swap2(e -> tail.status);
00040
00041 if (sizeof(method_t) == 2)
00042 e -> tail.method = swap2(e -> tail.method);
00043 else
00044 if (sizeof(method_t) == 4)
00045 e -> tail.method = rotate4(e -> tail.method);
00046
00047 if (sizeof(protocol_t) == 2)
00048 e -> tail.protocol = swap2(e -> tail.protocol);
00049 else
00050 if (sizeof(protocol_t) == 4)
00051 e -> tail.protocol = rotate4(e -> tail.protocol);
00052 }
|
Here is the call graph for this function:

1.3.3