FramedFrame/Community-Trainer — pull request #2 by ChiLaX (2013-06-19 14:30:22+00:00)
Title: Added Packet Parser Classes

Right now packet can contain segments like this:

5A 00 - normal bytes
?? ** - random bytes
[50-200] - customized randomized byte, in interval from 50 to 200
//These 2 will be automatically replaced by a randomized byte.
//Bytes will be tokens, too. So these 3 have TokenType nByte and a 'byte' value. The result of Packet.tokenize() //will return a PacketToken vector containing these Tokens.

[4,1++] - increment, 4 bytes, start at 1
[1,100--] - decrement, 1 byte, start at 100
//Starting value in 'word' variable.
[4,portalcount] - 4 bytes, replace with the value of the portal usage count pointer

//Tokens will contain the index in the original packet, length, type and either a byte or a int value, depending on the type.