Lines Matching defs:reader
24 type reader struct { struct
25 br bitReader
26 fileCRC uint32
27 blockCRC uint32
28 wantBlockCRC uint32
29 setupDone bool // true if we have parsed the bzip2 header.
30 blockSize int // blockSize in bytes, i.e. 900 * 1024.
31 eof bool
32 buf []byte // stores Burrows-Wheeler transformed data.
33 c [256]uint // the `C' array for the inverse BWT.
34 …int32 // mirrors the `tt' array in the bzip2 source and contains the P array in the upper 24 bits.
35 tPos uint32 // Index of the next output byte in tt.
37 preRLE []uint32 // contains the RLE data still to be processed.
38 preRLEUsed int // number of entries of preRLE used.
39 lastByte int // the last byte value seen.
40 byteRepeats uint // the number of repeats of lastByte seen.
41 repeats uint // the number of copies of lastByte to output.
58 func (bz2 *reader) setup(needMagic bool) error {
86 func (bz2 *reader) Read(buf []byte) (n int, err error) {
111 func (bz2 *reader) readFromBlock(buf []byte) int {
164 func (bz2 *reader) read(buf []byte) (int, error) {
237 func (bz2 *reader) readBlock() (err error) {