The header looks like:
3 length of compressed payload 1 compressed sequence id 3 length of payload before compression
- length of compressed payload
raw packet lengthminus the size of the compressed packet header (7 bytes) itself.
- compressed sequence id
sequence id of the compressed packets, reset in the same way as the MySQL Packet, but incremented independently
- length of payload before compression
size of payload before it was compressed.