mirror of
https://github.com/docker/cli.git
synced 2026-11-06 21:18:28 -04:00
- zstd: Fix crash when changing encoder dictionary with same ID full diff: https://github.com/klauspost/compress/compare/v1.18.4...v1.18.5 Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
16 lines
340 B
Go
16 lines
340 B
Go
//go:build amd64 && !appengine && !noasm && gc
|
|
|
|
// Copyright 2019+ Klaus Post. All rights reserved.
|
|
// License information can be found in the LICENSE file.
|
|
|
|
package zstd
|
|
|
|
// matchLen returns how many bytes match in a and b
|
|
//
|
|
// It assumes that:
|
|
//
|
|
// len(a) <= len(b) and len(a) > 0
|
|
//
|
|
//go:noescape
|
|
func matchLen(a []byte, b []byte) int
|