25 lines
696 B
C++
25 lines
696 B
C++
// Copyright (C) 2007-2025 EQ2EMulator
|
|
// Licensed under GPL v3
|
|
#ifndef PACKET_DUMP_H
|
|
#define PACKET_DUMP_H
|
|
|
|
#include <iostream>
|
|
using namespace std;
|
|
|
|
#include "../common/types.h"
|
|
#include "EQPacket.h"
|
|
|
|
class ServerPacket;
|
|
|
|
void DumpPacketAscii(const uchar* buf, int32 size, int32 cols=16, int32 skip=0);
|
|
void DumpPacketHex(const uchar* buf, int32 size, int32 cols=16, int32 skip=0);
|
|
void DumpPacketBin(const void* data, int32 len);
|
|
void DumpPacket(const uchar* buf, int32 size);
|
|
void DumpPacket(const ServerPacket* pack, bool iShowInfo = false);
|
|
void DumpPacketBin(const ServerPacket* pack);
|
|
void DumpPacketBin(int32 data);
|
|
void DumpPacketBin(int16 data);
|
|
void DumpPacketBin(int8 data);
|
|
|
|
#endif
|