v2ray-core/common/predicate/arrays.go

11 lines
141 B
Go
Raw Normal View History

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