• Joe Tsai's avatar
    compress/gzip: cleanup gzip package · 0d40dfa7
    Joe Tsai authored
    Changes made:
    * Reader.flg is not used anywhere else other than readHeader and
    does not need to be stored.
    * Store Reader.digest and Writer.digest as uint32s rather than as
    a hash.Hash32 and use the crc32.Update function instead. This simplifies
    initialization logic since the zero value of uint32 is the initial
    CRC-32 value. There are no performance detriments to doing this since
    the hash.Hash32 returned by crc32 simply calls crc32.Update as well.
    * s/[0:/[:/            Consistently use shorter notation for slicing.
    * s/RFC1952/RFC 1952/  Consistently use RFC notation.
    
    Change-Id: I55416a19f4836cbed943adaa3f672538ea5d166d
    Reviewed-on: https://go-review.googlesource.com/21429Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
    Run-TryBot: Joe Tsai <joetsai@digital-static.net>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    0d40dfa7
Name
Last commit
Last update
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...