Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEncoder ¶
func NewGZIPEncoder ¶
func NewGZIPWriter ¶
NewGZIPWriter returns a new pack.Writer that compresses data at the given level, in gzip encoding. Levels 1–9 are available; levels outside this range will be replaced by the closest level available.
func NewMatchFinder ¶
func NewMatchFinder(level int) pack.MatchFinder
Types ¶
type BestSpeed ¶
type BestSpeed struct {
// contains filtered or unexported fields
}
BestSpeed is an implementation of the MatchFinder interface that is comparable to level 1 (BestSpeed) in compress/flate.
func (*BestSpeed) FindMatches ¶
FindMatches looks for matches in src, appends them to dst, and returns dst.
type DualHash ¶
type DualHash struct { // Set Lazy to true to enable "lazy matching". Lazy bool // contains filtered or unexported fields }
DualHash is a modified version of BestSpeed with higher compression but lower speed. It uses both a 4-byte hash and an 8-byte one.
func (*DualHash) FindMatches ¶
FindMatches looks for matches in src, appends them to dst, and returns dst.
Click to show internal directories.
Click to hide internal directories.