The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



MakeListOfBits


Unit: SDL_dstruct
Class: TBitFld
Declaration: procedure MakeListOfBits (var BitList: TIntArray; State: boolean);

The method MakeListOfBits fills the array BitList with the indices of all bits showing the state defined by the parameter State. The length of the array is adjusted to the number of found bits.

Hint: Be careful not to call MakeListOfBits when a large bit array contains mostly bits of the state State. In this case, the memory requirements of the resulting list of bits will be higher by a factor 32 than the requirements for the bit array.



Last Update: 2023-Feb-06