github.com/andybalholm/brotli/matchfinder.ZDFast.MaxDistance (field)
17 uses
github.com/andybalholm/brotli/matchfinder (current package)
zdfast.go#L16: MaxDistance int
zdfast.go#L33: if z.MaxDistance == 0 {
zdfast.go#L34: z.MaxDistance = 1 << 16
zdfast.go#L38: if int(z.current) >= int(math.MaxInt32)-2*z.MaxDistance-len(z.history) {
zdfast.go#L39: minOffset := z.current + int32(len(z.history)) - int32(z.MaxDistance)
zdfast.go#L45: v = v - z.current + int32(z.MaxDistance)
zdfast.go#L54: v = v - z.current + int32(z.MaxDistance)
zdfast.go#L58: z.current = int32(z.MaxDistance)
zdfast.go#L64: historySize := max(2*z.MaxDistance, 1<<20, len(src))
zdfast.go#L68: offset := len(z.history) - z.MaxDistance
zdfast.go#L69: copy(z.history[:z.MaxDistance], z.history[offset:])
zdfast.go#L71: z.history = z.history[:z.MaxDistance]
zdfast.go#L135: if coffsetL < int32(z.MaxDistance) && uint32(cv) == candidateL.val {
zdfast.go#L142: if coffsetS < int32(z.MaxDistance) && uint32(cv) == candidateS.val {
zdfast.go#L154: if coffsetL < int32(z.MaxDistance) && uint32(cv) == candidateL.val {
github.com/andybalholm/brotli
writer.go#L137: mf = &matchfinder.ZDFast{MaxDistance: 1 << 20}
github.com/andybalholm/brotli/flate
writer.go#L28: mf = &matchfinder.ZDFast{MaxDistance: 1 << 15}
![]() |
The pages are generated with Golds v0.8.4. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |