encode_amd64.go 720 B

1234567891011121314151617181920212223242526272829
  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. // emitLiteral has the same semantics as in encode_other.go.
  9. //
  10. //go:noescape
  11. func emitLiteral(dst, lit []byte) int
  12. // emitCopy has the same semantics as in encode_other.go.
  13. //
  14. //go:noescape
  15. func emitCopy(dst []byte, offset, length int) int
  16. // extendMatch has the same semantics as in encode_other.go.
  17. //
  18. //go:noescape
  19. func extendMatch(src []byte, i, j int) int
  20. // encodeBlock has the same semantics as in encode_other.go.
  21. //
  22. //go:noescape
  23. func encodeBlock(dst, src []byte) (d int)