#include <string.h>
#include "tbox/MessageStream.h"
#include "tbox/Utilities.h"
Namespaces | |
namespace | SAMRAI |
namespace | SAMRAI::tbox |
Defines | |
#define | PACK(m_data, m_size, m_bytes) |
#define | UNPACK(m_data, m_size, m_bytes) |
#define PACK | ( | m_data, | |||
m_size, | |||||
m_bytes | ) |
Value:
do { \ void *ptr = getPointerAndAdvanceCursor(m_bytes); \ memcpy(ptr, (void *) m_data, m_bytes); \ } while (0)
#define UNPACK | ( | m_data, | |||
m_size, | |||||
m_bytes | ) |
Value:
do { \ void *ptr = getPointerAndAdvanceCursor(m_bytes); \ memcpy((void *) m_data, ptr, m_bytes); \ } while (0)