Delphi:TBitList

TBitList is very similar to the TBits class in Delphi. Like TBits, it can be used to efficiently store a virtually unlimited number of boolean values as a bitfield - i.e. consuming only one bit per boolean. When a very large number of boolean values need to be stored, this is considerably more economical than using an array of booleans. Unlike TBits, the underlying code is easier to modify. In addition, TBitList supports streaming - i.e. you can easily write your bitfield booleans to a stream and retrieve them later. TBitList has three key properties

The principal methods of TBitList are listed below

Usage: Create an instance of TBitList whenever you need to store a sequence of related integers. Use TBitList methods and properties to manage your entries. Remember to free the instance once you are done.
Download
Jump To...

Colophon