v2ray-core/common/predicate/arrays.go

11 lines
145 B
Go
Raw Normal View History

2016-05-24 20:09:22 +00:00
package predicate
func BytesAll(array []byte, b byte) bool {
2016-11-27 16:01:44 +00:00
for _, val := range array {
if val != b {
2016-05-24 20:09:22 +00:00
return false
}
}
return true
}