Lines Matching refs:bzip2
5 // Package bzip2 implements bzip2 decompression.
6 package bzip2
10 // There's no RFC for bzip2. I used the Wikipedia page for reference and a lot
11 // of guessing: http://en.wikipedia.org/wiki/Bzip2
15 // A StructuralError is returned when the bzip2 data is found to be
20 return "bzip2 data invalid: " + string(s)
23 // A reader decompresses bzip2 compressed data.
29 setupDone bool // true if we have parsed the bzip2 header.
33 tt []uint32 // mirrors the `tt' array in the bzip2 source and contains the P array in the upper 24 bits.
43 // NewReader returns an io.Reader which decompresses bzip2 data from r.
56 // setup parses the bzip2 header.
111 // bzip2 is a block based compressor, except that it has a run-length
235 // readBlock reads a bzip2 block. The magic number should already have been consumed.
387 // This limit of 2 million comes from the bzip2 source
454 // This also implements the `single array' method from the bzip2 source code