github.com/primecitizens/pcz/std@v0.2.1/core/bytealg/indexbyte.native.go (about)

     1  // SPDX-License-Identifier: Apache-2.0
     2  // Copyright 2023 The Prime Citizens
     3  //
     4  // Copyright 2018 The Go Authors. All rights reserved.
     5  // Use of this source code is governed by a BSD-style
     6  // license that can be found in the LICENSE file.
     7  
     8  //go:build pcz && (386 || amd64 || s390x || arm || arm64 || ppc64 || ppc64le || mips || mipsle || mips64 || mips64le || riscv64 || wasm)
     9  
    10  package bytealg
    11  
    12  //go:noescape
    13  func IndexSliceByte(b []byte, c byte) int
    14  
    15  //go:noescape
    16  func IndexByte(s string, c byte) int