Verify Mask
This commit is contained in:
parent
c584f650fa
commit
1c01e2dc29
@ -60,6 +60,15 @@ func (a AclBit) Verify(n NumBit) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// verify mask return true or false
|
||||
func (a AclBit) VerifyMask(mask AclBit) bool {
|
||||
if (a & mask) > 0 {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// verify or bit return true or false
|
||||
func (a AclBit) VerifyOr(n ...NumBit) bool {
|
||||
for _, n0 := range n {
|
||||
|
Loading…
Reference in New Issue
Block a user