AccessMask
Generic Windows object access rights.
Domain-specific rights such as winreg.AccessMask are
subtypes. This type names generically applicable rights only.
Inherits from: Iterable[AccessRight]
Constructor
AccessMask ...flags -> AccessMask overload 1 of 2
Constructs a flag set from symbols.
Parameters
| Name | Type | Description |
|---|---|---|
...flags |
AccessRight |
AccessMask flags -> AccessMask overload 2 of 2
Constructs a flag set from one iterable of symbols.
Parameters
| Name | Type | Description |
|---|---|---|
flags |
Iterable[AccessRight] |
Class Methods
from_int value -> AccessMask
Constructs a mask from a native integer, preserving unknown bits.
Parameters
| Name | Type | Description |
|---|---|---|
value |
Int |
Native mask bits. |
Fields
generic_rights @ AccessMask[get]The generic-rights portion.
int @ Int[get]The native integer mask.
specific_rights @ Int[get]The object-specific low 16 bits.
standard_rights @ AccessMask[get]The standard-rights portion.
Methods
(band)[S @ AccessMask] other -> S
Returns the flags set in both.
Parameters
| Name | Type | Description |
|---|---|---|
self |
S |
Receiver. |
other |
S |
(bnot)[S @ AccessMask]() -> S
Returns the flags of the type that are not set.
Parameters
| Name | Type | Description |
|---|---|---|
self |
S |
Receiver. |
(bor)[S @ AccessMask] other -> S
Returns the flags set in either.
Parameters
| Name | Type | Description |
|---|---|---|
self |
S |
Receiver. |
other |
S |
(bxor)[S @ AccessMask] other -> S
Returns the flags set in exactly one.
Parameters
| Name | Type | Description |
|---|---|---|
self |
S |
Receiver. |
other |
S |
contains flag -> Bool
Tests whether all flags named by flag are set.
Parameters
| Name | Type | Description |
|---|---|---|
flag |
AccessRight |