lichao
2021-04-23 a04d4d01eb8e38b8ec5367114b5581bd64eee17e
src/msg.cpp
@@ -16,20 +16,10 @@
 * =====================================================================================
 */
#include "msg.h"
#include "bh_util.h"
namespace bhome_shm {
bool MsgMetaV1::Parse(const void *p)
namespace bhome_msg
{
    assert(p);
    *this = *static_cast<const MsgMetaV1*>(p);
    return tag_ == kMsgMetaTag;
}
const uint32_t kMsgTag = 0xf1e2d3c4;
void MsgMetaV1::Pack(void *p)
{
    *static_cast<MsgMetaV1*>(p) = *this;
}
} // namespace bhome_shm
} // namespace bhome_msg