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