header contains lengths of the compressed and uncompressed data