Steam recently changed the default privacy settings for all users. This may impact tracking. Ensure your profile has the correct settings by following the guide on our forums.
OK I found the infos I was looking for.
To sum up,it's a Zlib compression, not a whole file compression, but a compression sector by sector, so as each compressed sector has a different size, those sizes are stored in the header of the file.
You can download the code here in English or here in French