func (f *packedFileReader) nextBlockInFile() error {
	h, err := f.r.next()
	if err != nil {
		if err == io.EOF {
			// archive ended, but file hasn't
			return errUnexpectedArcEnd
		}
		return err
	}
	if h.first || h.Name != f.h.Name {
		return errInvalidFileBlock
	}
	f.h = h
	return nil
}
func (f *packedFileReader) nextBlockInFile() error {
	h, err := f.r.next()
	if err != nil {
		if err == io.EOF {
			
			return errUnexpectedArcEnd
		}
		return err
	}
	if h.first || h.Name != f.h.Name {
		return errInvalidFileBlock
	}
	f.h = h
	return nil
}
func ( f * packedFileReader ) nextBlockInFile ( ) error { h , err := f . r . next ( ) if err != nil { if err == io . EOF { // archive ended, but file hasn't return errUnexpectedArcEnd } return err } if h . first || h . Name != f . h . Name { return errInvalidFileBlock } f . h = h return nil }
// nextBlockInFile reads the next file block in the current file at the current
// archive file position, or returns an error if there is a problem.
// It is invalid to call this when already at the last block in the current file.
nextBlockInFile reads the next file block in the current file at the current archive file position or returns an error if there is a problem . It is invalid to call this when already at the last block in the current file .