Random access gzip stream

后端 未结 4 1421
余生分开走
余生分开走 2020-12-15 08:32

I\'d like to be able to do random access into a gzipped file. I can afford to do some preprocessing on it (say, build some kind of index), provided that the result of the pr

4条回答
  •  心在旅途
    2020-12-15 09:09

    Have a look at this link (C code example).

    /* zran.c -- example of zlib/gzip stream indexing and random access
    ...
    

    Gzip is just zlib with an envelope.

提交回复
热议问题