mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-12-30 05:55:20 -05:00
Remove serial.Bytes
This commit is contained in:
10
common/predicate/arrays.go
Normal file
10
common/predicate/arrays.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package predicate
|
||||
|
||||
func BytesAll(array []byte, b byte) bool {
|
||||
for _, v := range array {
|
||||
if v != b {
|
||||
return false
|
||||
}
|
||||
}
|
||||
return true
|
||||
}
|
||||
Reference in New Issue
Block a user