go/src/internal/bytealg/count_native.go

//go:noescape
func Count(b []byte, c byte) int

//go:noescape
func CountString(s string, c byte) int

// A backup implementation to use by assembly.
func countGeneric(b []byte, c byte) int {}

func countGenericString(s string, c byte) int {}