github.com/sandwichdev/go-internals@v0.0.0-20210605002614-12311ac6b2c5/bytealg/indexbyte_native.go (about)

     1  // Copyright 2018 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  // +build 386 amd64 s390x arm arm64 ppc64 ppc64le mips mipsle mips64 mips64le riscv64 wasm
     6  
     7  package bytealg
     8  
     9  //go:noescape
    10  func IndexByte(b []byte, c byte) int
    11  
    12  //go:noescape
    13  func IndexByteString(s string, c byte) int