go/src/compress
Joe Tsai d3a4e8ed3c compress/gzip: specify when Reader.Header is valid
The gzip package is asymmetrical in the way it handles headers.
In Writer, the Header is written on the first call to Write, Flush, or Close.
In Reader, the Header is read on calls to NewReader or Reset as opposed to
after the first Read. Thus, we document this difference.

Fixes #13211

Change-Id: I5f87beff036e5e2fd68a02a15fdb7137e9ca4c37
Reviewed-on: https://go-review.googlesource.com/16838
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2015-11-13 09:16:53 +00:00
..
bzip2 compress/bzip2: make decoding faster 2015-08-28 04:20:56 +00:00
flate compress/flate: improve inflate speed by reading more bits at a time 2015-10-19 00:01:31 +00:00
gzip compress/gzip: specify when Reader.Header is valid 2015-11-13 09:16:53 +00:00
lzw compress/lzw: tidy up some flush calls. 2015-09-09 01:45:00 +00:00
testdata build: move package sources from src/pkg to src 2014-09-08 00:08:51 -04:00
zlib compress/zlib: detect truncated streams 2015-09-30 22:47:28 +00:00