BitVector32.CreateSection Method (Int16)
Creates the first BitVector32.Section in a series of sections that contain small integers.
Assembly: System (in System.dll)
Return ValueType: System.Collections.Specialized.BitVector32.Section
A BitVector32.Section that can hold a number from zero to maxValue.
A BitVector32.Section is a window into the BitVector32 and is composed of the smallest number of consecutive bits that can contain the maximum value specified in CreateSection. For example, a section with a maximum value of 1 is composed of only one bit, whereas a section with a maximum value of 5 is composed of three bits. You can create a BitVector32.Section with a maximum value of 1 to serve as a Boolean, thereby allowing you to store integers and Booleans in the same BitVector32.
If sections already exist in the BitVector32, those sections are still accessible; however, overlapping sections might cause unexpected results.
This method is an O(1) operation.