William Kurkian | ea86948 | 2019-04-09 15:16:11 -0400 | [diff] [blame] | 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 | |
| 5 | // +build !appengine |
| 6 | // +build gc |
| 7 | // +build !noasm |
| 8 | |
| 9 | package snappy |
| 10 | |
| 11 | // emitLiteral has the same semantics as in encode_other.go. |
| 12 | // |
| 13 | //go:noescape |
| 14 | func emitLiteral(dst, lit []byte) int |
| 15 | |
| 16 | // emitCopy has the same semantics as in encode_other.go. |
| 17 | // |
| 18 | //go:noescape |
| 19 | func emitCopy(dst []byte, offset, length int) int |
| 20 | |
| 21 | // extendMatch has the same semantics as in encode_other.go. |
| 22 | // |
| 23 | //go:noescape |
| 24 | func extendMatch(src []byte, i, j int) int |
| 25 | |
| 26 | // encodeBlock has the same semantics as in encode_other.go. |
| 27 | // |
| 28 | //go:noescape |
| 29 | func encodeBlock(dst, src []byte) (d int) |