I was playing with bgzf archives and it was fairly easy to use bgzf.Reader in bufio.Reader so the the archive could be read in chunks. In one pass I would make an useful index of offsets so later on I could use the very large archive as if it was memory mapped file on the disk.
I tried to find if there's any example of using xflate in the similar way. All of the examples I could find would read the whole compressed archive into the memory.
So, my question is, is there an example of buffered read/seek in chunks of the compressed "xflated" archive?
I found the custom implementation of what I tried to describe here via io.ReadSeeker as not trivial one. So if there's already an example I would appreciate it immensely :)