2
#define GIOP_ENDIAN_H 1
4
#include <orbit/GIOP/giop-types.h>
8
#ifdef ORBIT2_INTERNAL_API
10
/* This is also defined in IIOP-types.c */
11
void giop_byteswap(guchar *outdata,
15
#if defined(G_CAN_INLINE) && !defined(GIOP_DO_NOT_INLINE_IIOP_BYTESWAP)
16
G_INLINE_FUNC void giop_byteswap(guchar *outdata,
20
const guchar *source_ptr = data;
21
guchar *dest_ptr = outdata + datalen - 1;
22
while(dest_ptr >= outdata)
23
*dest_ptr-- = *source_ptr++;
27
#endif /* ORBIT2_INTERNAL_API */