encode_amd64.go 482 B

12345678910111213141516171819
  1. // Copyright 2016 The Snappy-Go Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. // +build !appengine
  5. // +build gc
  6. // +build !noasm
  7. package snappy
  8. // emitCopy has the same semantics as in encode_other.go.
  9. //
  10. //go:noescape
  11. func emitCopy(dst []byte, offset, length int) int
  12. // extendMatch has the same semantics as in encode_other.go.
  13. //
  14. //go:noescape
  15. func extendMatch(src []byte, i, j int) int