lichao
2021-03-24 6f9521a6dca494a9f9644d1ccacdee23744dc0e5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
 * =====================================================================================
 *
 *       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<const MsgMetaV1*>(p);
    return tag_ == kMsgMetaTag;
}
 
void MsgMetaV1::Pack(void *p)
{
    *static_cast<MsgMetaV1*>(p) = *this;
}
 
} // namespace bhome_shm