msghead.cpp

来自「模拟手机源程序,做短信系统(源码)」· C++ 代码 · 共 31 行

CPP
31
字号
// MsgHead.cpp: implementation of the CMsgHead class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "MsgHead.h"
//////////////////////////////////////////////////////////////////////
CMsgHead::CMsgHead()
{  
  ZeroMemory(&m_msgHead,sizeof(m_msgHead));
}

CMsgHead::~CMsgHead()
{

}
void CMsgHead::SetBuf(void* buf,int Len)
{	
	StrSplitter::SetBuffer(buf,Len);
	StrSplitter::del(m_msgHead.Sequence_ID);
	StrSplitter::del(m_msgHead.Command_ID);
	StrSplitter::del(m_msgHead.Total_Length);	
}
STRUCT_MsgHead CMsgHead::GetMsgHead()
{	
	return m_msgHead;
}
void CMsgHead::SetMsgHead(STRUCT_MsgHead msgHeadValue)
{
    m_msgHead=msgHeadValue;
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?