github.com/vc42/parquet-go@v0.0.0-20240320194221-1a9adb5f23f5/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 }