SectionCharacteristics is implemented as a public newtype around the raw
u32, giving access to the inner value in case flags are not implemented. The
wrapper follows the same pattern used for flags in the TPI, which parses the
flag values lazily.
There is special handling for the mutually exclusive alignment values, as well
as the _NO_PAD flag. Otherwise, all flags are exposed directly as booleans.
SectionCharacteristics
is implemented as a public newtype around the rawu32
, giving access to the inner value in case flags are not implemented. The wrapper follows the same pattern used for flags in the TPI, which parses the flag values lazily.There is special handling for the mutually exclusive alignment values, as well as the
_NO_PAD
flag. Otherwise, all flags are exposed directly as booleans.Fixes https://github.com/willglynn/pdb/issues/106