Go to the source code of this file.
◆ ALIGN_8
#define ALIGN_8 |
( |
|
x | ) |
(((unsigned long)x + 7) & (~7)) |
Copyright (c) 1995, 1996, 1997, 1998, 1999, 2000 by The Board of Trustees of the University of Illinois. All rights reserved.
Definition at line 25 of file packmsg.h.
Referenced by ProxyResultMsg::unpack().
◆ PACK
#define PACK |
( |
|
DATA | ) |
PACK_MEMORY(&(packmsg_msg->DATA),sizeof(packmsg_msg->DATA)) |
◆ PACK_AND_NEW_ARRAY
#define PACK_AND_NEW_ARRAY |
( |
|
DATA, |
|
|
|
LEN |
|
) |
| |
Value:{ \
PACK(LEN)\
if ( packmsg_pass == 2 ) { \
packmsg_msg->DATA =
new_array(packmsg_msg->DATA,packmsg_msg->LEN); \
} \
PACK_MEMORY(packmsg_msg->DATA,packmsg_msg->LEN*sizeof(*(packmsg_msg->DATA))); \
}
T * new_array(T *, int n)
Definition at line 139 of file packmsg.h.
◆ PACK_ARRAY
#define PACK_ARRAY |
( |
|
DATA, |
|
|
|
LEN |
|
) |
| |
Value:{ \
PACK(LEN); \
PACK_MEMORY(packmsg_msg->DATA,packmsg_msg->LEN*sizeof(*(packmsg_msg->DATA))); \
}
Definition at line 134 of file packmsg.h.
◆ PACK_MEMORY
#define PACK_MEMORY |
( |
|
BUF, |
|
|
|
SIZE |
|
) |
| |
Value:{ \
switch ( packmsg_pass ) { \
case 0: \
packmsg_size += (ASIZE); \
break; \
case 1: \
CmiMemcpy((void *)packmsg_cur,(void *)(BUF),(SIZE)); \
packmsg_cur += (ASIZE); \
break; \
case 2: \
CmiMemcpy((void *)(BUF),(void *)packmsg_cur,(SIZE)); \
packmsg_cur += (ASIZE); \
break; \
default: \
break; \
} \
}
Definition at line 102 of file packmsg.h.
◆ PACK_MSG
#define PACK_MSG |
( |
|
MSGTYPE, |
|
|
|
MSGDATA |
|
) |
| |
◆ PACK_RESIZE
#define PACK_RESIZE |
( |
|
DATA | ) |
|
Value:{ \
int packmsg_array_len = packmsg_msg->DATA.size(); \
PACK_MEMORY(&packmsg_array_len,sizeof(packmsg_array_len)); \
if ( packmsg_pass == 2 ) packmsg_msg->DATA.resize(packmsg_array_len); \
int packmsg_array_size = \
PACK_MEMORY(packmsg_msg->DATA.begin(),packmsg_array_size); \
}
size_t sizeof_element(ResizeArray< T > &)
#define PACK_MEMORY(BUF, SIZE)
Definition at line 125 of file packmsg.h.
◆ PACK_THIS
#define PACK_THIS PACK_MEMORY(packmsg_msg,sizeof(*packmsg_msg)); |
◆ PACKMSG_CHECKSUM
#define PACKMSG_CHECKSUM |
( |
|
X | ) |
|
◆ new_array()
template<class T >
T* new_array |
( |
T * |
, |
|
|
int |
n |
|
) |
| |
|
inline |
◆ sizeof_element()