summaryrefslogtreecommitdiff
path: root/src/pkg/bytes/bytes_decl.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/bytes/bytes_decl.go')
-rw-r--r--src/pkg/bytes/bytes_decl.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/pkg/bytes/bytes_decl.go b/src/pkg/bytes/bytes_decl.go
index 5d2b9e639..ce78be416 100644
--- a/src/pkg/bytes/bytes_decl.go
+++ b/src/pkg/bytes/bytes_decl.go
@@ -4,5 +4,13 @@
package bytes
+//go:noescape
+
// IndexByte returns the index of the first instance of c in s, or -1 if c is not present in s.
func IndexByte(s []byte, c byte) int // asm_$GOARCH.s
+
+//go:noescape
+
+// Equal returns a boolean reporting whether a == b.
+// A nil argument is equivalent to an empty slice.
+func Equal(a, b []byte) bool // asm_$GOARCH.s