github.com/parquet-go/parquet-go@v0.21.1-0.20240501160520-b3c3a0c3ed6f/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 }