Documentation ¶
Index ¶
Constants ¶
View Source
const ( ModeIdentity Mode = iota ModeUnknown ModeS2 ModeGzip ModeIdentityName = "identity" ModeS2Name = "s2" ModeGzipName = "gzip" ModeUknownName = "unknown" )
Enumerate available modes and their textual names
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Mode ¶
type Mode uint8
Mode represents a compression mode
func ModeFromName ¶
ModeFromName constructs a Mode from a textual name
func (Mode) NewReader ¶
NewReader constructs a reader wrapper that applies this mode's decompression
func (Mode) NewWriter ¶
func (m Mode) NewWriter(wtr io.WriteCloser) (io.WriteCloser, error)
NewWriter constructs a writer wrapper that applies this mode's compression
Click to show internal directories.
Click to hide internal directories.