1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-11-17 18:06:15 -05:00
v2fly/common/predicate/arrays.go

11 lines
145 B
Go
Raw Normal View History

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