github.com/xushiwei/go@v0.0.0-20130601165731-2b9d83f45bc9/src/pkg/bytes/bytes_decl.go (about) 1 // Copyright 2010 The 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 package bytes 6 7 //go:noescape 8 9 // IndexByte returns the index of the first instance of c in s, or -1 if c is not present in s. 10 func IndexByte(s []byte, c byte) int // asm_$GOARCH.s 11 12 //go:noescape 13 14 // Equal returns a boolean reporting whether a == b. 15 // A nil argument is equivalent to an empty slice. 16 func Equal(a, b []byte) bool // asm_arm.s or ../runtime/asm_{386,amd64}.s