github.com/segmentio/parquet-go@v0.0.0-20230712180008-5d42db8f0d47/internal/bytealg/count_purego.go (about) 1 //go:build purego || !amd64 2 3 package bytealg 4 5 import "bytes" 6 7 func Count(data []byte, value byte) int { 8 return bytes.Count(data, []byte{value}) 9 }