BasePacket
public text v1 · immutable#include "stdafx.h"
class BasePacket
{
private:
char *_buffer;
int _size;
int offset;
public:
BasePacket(char *buffer,int size):_buffer(buffer),_size(size),offset(0)
{
}
void run() {}
unsigned char readByte()
{
return _buffer[offset++];
}
char readByte()
{
return _buffer[offset++];
}
};