/* * ===================================================================================== * * Filename: msg.cpp * * Description: * * Version: 1.0 * Created: 2021年03月24日 16时48分42秒 * Revision: none * Compiler: gcc * * Author: Li Chao (), * Organization: * * ===================================================================================== */ #include "msg.h" namespace bhome_shm { bool MsgMetaV1::Parse(const void *p) { assert(p); *this = *static_cast(p); return tag_ == kMsgMetaTag; } void MsgMetaV1::Pack(void *p) { *static_cast(p) = *this; } } // namespace bhome_shm