github.com/andybalholm/brotli/matchfinder.ZFast.MaxDistance (field)
15 uses
github.com/andybalholm/brotli/matchfinder (current package)
zfast.go#L24: MaxDistance int
zfast.go#L39: if z.MaxDistance == 0 {
zfast.go#L40: z.MaxDistance = 1 << 16
zfast.go#L44: if int(z.current) >= int(math.MaxInt32)-2*z.MaxDistance-len(z.history) {
zfast.go#L45: minOffset := z.current + int32(len(z.history)) - int32(z.MaxDistance)
zfast.go#L51: v = v - z.current + int32(z.MaxDistance)
zfast.go#L55: z.current = int32(z.MaxDistance)
zfast.go#L61: historySize := max(2*z.MaxDistance, 1<<20, len(src))
zfast.go#L65: offset := len(z.history) - z.MaxDistance
zfast.go#L66: copy(z.history[:z.MaxDistance], z.history[offset:])
zfast.go#L68: z.history = z.history[:z.MaxDistance]
zfast.go#L129: if coffset0 < int32(z.MaxDistance) && uint32(cv) == candidate.val {
zfast.go#L136: if coffset1 < int32(z.MaxDistance) && uint32(cv>>8) == candidate2.val {
github.com/andybalholm/brotli
writer.go#L135: mf = &matchfinder.ZFast{MaxDistance: 1 << 20}
github.com/andybalholm/brotli/flate
writer.go#L26: mf = &matchfinder.ZFast{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. |