Slide 7
Slide 7 text
compress/zlib
• func
NewReader(r
io.Reader)
(io.ReadCloser,
error)
• func
NewReaderDict(r
io.Reader,
dict
[]byte)
(io.ReadCloser,
error)
• type
Writer
– func
NewWriter(w
io.Writer)
*Writer
– func
NewWriterLevel(w
io.Writer,
level
int)
(*Writer,
error)
– func
NewWriterLevelDict(w
io.Writer,
level
int,
dict
[]byte)
(*Writer,
error)
– func
(z
*Writer)
Close()
error
– func
(z
*Writer)
Flush()
error
– func
(z
*Writer)
Reset(w
io.Writer)
– func
(z
*Writer)
Write(p
[]byte)
(n
int,
err
error)
• その他、圧縮オプションに関する定数値、エラー型を定義
• 中でflateを呼んでいる