Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct PacketData {
- LittleEndian();
- int peer_id;
- byte unk1;
- byte unk2;
- BigEndian();
- int dataLength;
- byte unk3;
- byte unk4;
- byte unk5;
- string rpc_name;
- LittleEndian();
- byte params_count;
- struct Param {
- int type;
- if (type == 1)
- int value;
- if (type == 2)
- // Bool encoded as int, realy?
- int value;
- if (type == 4) {
- // I dont think that we need len for string (which is ending with 0x00 always), but ok)
- int length;
- char value[length];
- // Why we need pads here, its just waste of memory
- if (length % 4 > 0)
- char pads[4 - length % 4];
- }
- } param[pd.params_count] <optimize=false>;
- // I dont understand why i got this word (Node) in every packet end
- char node[5];
- } pd[7] <optimize=false>;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement