#include <istream>
#include <iostream>
#include <fstream>
#define PACKETRECV_SIZE 20
typedef char Int8;
typedef unsigned char UInt8;
typedef signed int Int32;
typedef unsigned int UInt32;
using namespace std;
UInt8 _buff[PACKETRECV_SIZE]={0xad,0x83,0xce,0xb4,0x5d,0xf3,0x40,0x97,0xf0,0x70,
0x8e,0x23,0xa4,0x56,0xb0,0x72,0x9b,0x77,0x90,0xcb};
UInt8 buffer[2]={0x40,0x5d};
class MemoryStreamBuf: public std::streambuf {
public:
MemoryStreamBuf(char* pBuffer,UInt32 bufferSize);
#include <iostream>
#include <fstream>
#define PACKETRECV_SIZE 20
typedef char Int8;
typedef unsigned char UInt8;
typedef signed int Int32;
typedef unsigned int UInt32;
using namespace std;
UInt8 _buff[PACKETRECV_SIZE]={0xad,0x83,0xce,0xb4,0x5d,0xf3,0x40,0x97,0xf0,0x70,
0x8e,0x23,0xa4,0x56,0xb0,0x72,0x9b,0x77,0x90,0xcb};
UInt8 buffer[2]={0x40,0x5d};
class MemoryStreamBuf: public std::streambuf {
public:
MemoryStreamBuf(char* pBuffer,UInt32 bufferSize);
public:
UInt32 _written;
char*