Modules Namespace List Class Hierarchy Alphabetical List Compound List Namespace Members Compound Members Related Pages
InputStream.h File Reference
#include "../CORBA.h"
#include "../ORB.h"
Define Documentation
#define CDRSWAP2 |
( |
value |
|
) |
|
|
|
Value: do { \
if (_endian != org::omg::CORBA::portable::naturualEndian) { \
short& v = *(short*)&value; \
v = (v << 8) | (v >> 8); \
} \
} while (false)
|
#define CDRSWAP4 |
( |
value |
|
) |
|
|
|
Value: do { \
if (_endian != org::omg::CORBA::portable::naturualEndian) { \
int& v = *(int*)&value; \
v = ((v << 24) | ((v & 0xff00) << 8) | ((v >> 8) & 0xff00) | (v >> 24)); \
} \
} while (false)
|
#define CDRSWAP8 |
( |
value |
|
) |
|
|
|
Value: do { \
if (_endian != org::omg::CORBA::portable::naturualEndian) { \
jlong& v = *(jlong*)&value; \
int v0 = ((int*)&v)[0]; \
int v1 = ((int*)&v)[1]; \
v0 = ((v0 << 24) | ((v0 & 0xff00) << 8) | ((v0 >> 8) & 0xff00) | (v0 >> 24)); \
v1 = ((v1 << 24) | ((v1 & 0xff00) << 8) | ((v1 >> 8) & 0xff00) | (v1 >> 24)); \
((int*)&v)[0] = v1; \
((int*)&v)[1] = v0; \
} \
} while (false)
|