https://learn.microsoft.com/en-us/dotnet/api/system.collections.specialized.bitvector32.createmask?view=netframework-4.8.1&viewFallbackFrom=net-10.0
BitVector32.CreateMask Method (System.Collections.Specialized) | Microsoft Learn
Creates a series of masks that can be used to retrieve individual bits in a BitVector32 that is set up as bit flags.
methodsystemcollectionsspecializedmicrosoft