]> Cypherpunks repositories - gostls13.git/commit
compress/flate: implement Flush
authorRuss Cox <rsc@golang.org>
Tue, 14 Dec 2010 19:57:12 +0000 (14:57 -0500)
committerRuss Cox <rsc@golang.org>
Tue, 14 Dec 2010 19:57:12 +0000 (14:57 -0500)
commitf620a430f270abe794d0dcfb7597a28ec649f51c
tree2aaf03da1f528485aa12f1163bdb4406e39b5ec7
parent8bb9e616ed0b489bda977d32e1ab2aac90169dff
compress/flate: implement Flush

This Flush is equivalent to zlib's Z_SYNC_FLUSH.
The addition of the explicit Writer type opens the
door to adding a PartialFlush if needed for SSH
and maybe even FullFlush.  It also opens the door
for a SetDictionary method to be added.

http://www.bolet.org/~pornin/deflate-flush.html
documents the various intricacies of flushing a
DEFLATE stream.

R=agl1, r
CC=golang-dev
https://golang.org/cl/3637041
src/pkg/compress/flate/deflate.go
src/pkg/compress/flate/deflate_test.go
src/pkg/compress/flate/inflate.go