Steal buffer from SerializeBuffer now

This commit is contained in:
Michael Cook (mackal)
2018-07-08 23:03:53 -04:00
parent 2d456ba8c9
commit 4c6de9b991
5 changed files with 23 additions and 5 deletions
+2
View File
@@ -19,6 +19,7 @@
#define BASEPACKET_H_
#include "types.h"
#include "serialize_buffer.h"
#include <stdio.h>
#include <string.h>
@@ -85,6 +86,7 @@ protected:
virtual ~BasePacket();
BasePacket() { pBuffer=nullptr; size=0; _wpos = 0; _rpos = 0; }
BasePacket(const unsigned char *buf, const uint32 len);
BasePacket(SerializeBuffer &buf);
};
extern void DumpPacketHex(const BasePacket* app);