Debian Codegraph @

mem/contains.go

raw
1 package mem
2
3 import "bytes"
4
5 func containsGeneric(haystack []byte, needle byte) bool {
6 return bytes.IndexByte(haystack, needle) != -1
7 }