// Flush updates the read offset of the underlying ByteReader.
// If reader is a compress.BufferedReader, then this calls Discard to update
// the read offset.
Flush updates the read offset of the underlying ByteReader.
If reader is a compress.BufferedReader, then this calls Discard to update
the read offset.
// Flush updates the read offset of the underlying ByteReader . // If reader is a compress . BufferedReader then this calls Discard to update // the read offset .
func (pr *Reader) Flush() (int64, error) {
	if pr.bufRd == nil {
		return pr.Offset, nil
	}
	pr.discardBits += int(pr.fedBits - pr.numBits)
	pr.fedBits = pr.numBits
	var err error
	nd := (pr.discardBits + 7) / 8 
	nd, err = pr.bufRd.Discard(nd)
	pr.discardBits -= nd * 8 
	pr.Offset += int64(nd)
	pr.bufPeek = nil
	return pr.Offset, err
}
func ( pr * Reader ) Flush ( ) ( int64 , error ) { if pr . bufRd == nil { return pr . Offset , nil } pr . discardBits += int ( pr . fedBits - pr . numBits ) pr . fedBits = pr . numBits var err error nd := ( pr . discardBits + 7 ) / 8 nd , err = pr . bufRd . Discard ( nd ) pr . discardBits -= nd * 8 pr . Offset += int64 ( nd ) pr . bufPeek = nil return pr . Offset , err }
Flush updates the read offset of the underlying ByteReader.
Flush updates the read offset of the underlying ByteReader .
// Update the number of total bits to discard. // Discard some bytes to update read offset. // Round up to nearest byte // -7..0 // These are invalid after Discard.