// Read reads data from the buffer. If no more data is available io.EOF is
// returned.
Read reads data from the buffer. If no more data is available io.EOF is
returned.
// Read reads data from the buffer . If no more data is available io . EOF is // returned .
func (d *decoder) Read(p []byte) (n int, err error) {
	var k int
	for {
		k, err = d.Dict.Read(p[n:])
		if err != nil {
			panic(fmt.Errorf("dictionary read error %s", err))
		}
		if k == 0 && d.eos {
			return n, io.EOF
		}
		n += k
		if n >= len(p) {
			return n, nil
		}
		if err = d.decompress(); err != nil && err != io.EOF {
			return n, err
		}
	}
}
func ( d * decoder ) Read ( p [ ] byte ) ( n int , err error ) { var k int for { k , err = d . Dict . Read ( p [ n : ] ) if err != nil { panic ( fmt . Errorf ( " " , err ) ) } if k == 0 && d . eos { return n , io . EOF } n += k if n >= len ( p ) { return n , nil } if err = d . decompress ( ) ; err != nil && err != io . EOF { return n , err } } }
Read reads data from the buffer.
Read reads data from the buffer .
// Read of decoder dict never returns an error.