Go to the source code of this file.
Defines | |
| #define | ALIGN_8(x) (((unsigned long)x + 7) & (~7)) |
| #define | PACKMSG_CHECKSUM(X) |
| #define | PACK_MSG(MSGTYPE, MSGDATA) |
| #define | PACK_MEMORY(BUF, SIZE) |
| #define | PACK_THIS PACK_MEMORY(packmsg_msg,sizeof(*packmsg_msg)); |
| #define | PACK(DATA) PACK_MEMORY(&(packmsg_msg->DATA),sizeof(packmsg_msg->DATA)) |
| #define | PACK_RESIZE(DATA) |
| #define | PACK_ARRAY(DATA, LEN) |
| #define | PACK_AND_NEW_ARRAY(DATA, LEN) |
Functions | |
| template<class T> | |
| size_t | sizeof_element (ResizeArray< T > &) |
| template<class T> | |
| T * | new_array (T *, int n) |
|
|
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 ProxyCombinedResultMsg::pack(), PACK_MSG(), ProxyCombinedResultMsg::unpack(), and ProxyResultMsg::unpack(). |
|
|
|
|
|
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))); \
}
|
|
|
Value: { \
PACK(LEN); \
PACK_MEMORY(packmsg_msg->DATA,packmsg_msg->LEN*sizeof(*(packmsg_msg->DATA))); \
}
|
|
|
Value: { \
int ASIZE = ALIGN_8(SIZE); \
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; \
} \
}
|
|
|
|
|
|
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 = \
packmsg_array_len * sizeof_element(packmsg_msg->DATA); \
PACK_MEMORY(packmsg_msg->DATA.begin(),packmsg_array_size); \
}
|
|
|
|
|
|
|
|
||||||||||||||||
|
Definition at line 33 of file packmsg.h. 00033 { return new T[n]; }
|
|
||||||||||
|
Definition at line 31 of file packmsg.h. 00031 { return sizeof(T); }
|
1.3.9.1