📄 endecode.h
字号:
#define _DEFBLOCKSIZE 16
#define _DEFBLOCKSIZE 16
#define _FEATURESIZE 6
#define _CHARDESCSIZE 11
#define _FEATURESIZEEX 4
typedef struct tag_TDEFAULTMESSAGE
{
int nRecog;
WORD wIdent;
WORD wParam;
WORD wTag;
WORD wSeries;
} _TDEFAULTMESSAGE, *_LPTDEFAULTMESSAGE;
typedef struct tag_TSHORTMSSEAGE
{
WORD wIdent;
WORD wMsg;
} _TSHORTMSSEAGE, *_LPTSHORTMSSEAGE;
typedef struct tagPACKETMSG
{
_TDEFAULTMESSAGE stDefMsg;
CHAR szEncodeData[MAX_PATH * 4];
}PACKETMSG, *LPPACKETMSG;
typedef struct tag_TMSGHEADER
{
int nCode;
int nSocket;
WORD wUserGateIndex;
WORD wIdent;
WORD wUserListIndex;
WORD wTemp;
int nLength;
} _TMSGHEADER, *_LPTMSGHEADER;
/*typedef struct tagTGateToSvrHeader
{
char szPrefix; // Always is '%'
char szID; // Identifier.
BYTE btGateIndex; // Gate server index.
int nSocket; // Socket(owner of msg) in gate server.
WORD wDataLength; // Length of msg that following header.
} TGateToSvrHeader, *LPTGateToSvrHeader;
#define GTS_HEADER_SIZE sizeof(TGateToSvrHeader) */
void WINAPI fnMakeDefMessage(_LPTDEFAULTMESSAGE lptdm, WORD wIdent, int nRecog, WORD wParam, WORD wTag, WORD wSeries);
int WINAPI fnEncode6BitBuf(unsigned char *pszSrc, char *pszDest, int nSrcLen, int nDestLen);
int WINAPI fnDecode6BitBuf(char *pszSrc, char *pszDest, int nDestLen);
int WINAPI fnEncodeMessage(_LPTDEFAULTMESSAGE lptdm, char *pszBuf, int nLen);
int WINAPI fnDecodeMessage(_LPTDEFAULTMESSAGE lptdm, char *pszBuf);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -