forked from yscjr/SPPRTool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
protoreader.h
9 lines (7 loc) · 711 Bytes
/
protoreader.h
1
2
3
4
5
6
7
8
9
#ifndef PROTOREADER_H
#define PROTOREADER_H
unsigned int ReadProtoNumber(const unsigned char *pubInput, unsigned int cubAvail, void *pubDest, unsigned int cubSize, bool bFixed = false);
unsigned int ReadProtoLengthDelimited(const unsigned char *pubInput, unsigned int cubAvail, void *pubDest = NULL, unsigned int *cubSize = NULL);
unsigned int ReadProtoField(const unsigned char *pubInput, unsigned int cubAvail, unsigned int *punTag, unsigned int *punWireType, void *pubDest = NULL, unsigned int *cubSize = NULL);
bool GetFieldDataByTag(unsigned int nTag, const unsigned char *pubInput, unsigned int cubAvail, void *pubDest, unsigned int *cubSize, unsigned int *cubTotalRead = NULL);
#endif // PROTOREADER_H