lichao
2021-05-10 77a6c3512a44dfe6540dde71946e6484fe4f173f
src/msg.cpp
@@ -16,20 +16,9 @@
 * =====================================================================================
 */
#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;
}
void MsgMetaV1::Pack(void *p)
{
    *static_cast<MsgMetaV1*>(p) = *this;
}
} // namespace bhome_shm
} // namespace bhome_msg