BLBitSet Class Referencefinal [¶]
BitSet container [C++ API].
BitSet container implements sparse BitSet that consists of segments, where each segment represents either dense range of bits or a range of bits that are all set to one. In addition, the BitSet provides also a SSO mode, in which it's possible to store up to 64 dense bits (2 consecutive BitWords) in the whole addressable range or a range of ones. SSO mode optimizes use cases, in which very small BitSets are needed.
The BitSet itself has been optimized for Blend2D use cases, which are the following:
- Representing character coverage of fonts and unicode text. This use-case requires sparseness and ranges as some fonts, especially those designed for CJK use, provide thousands of glyphs that have pretty high code points - using BLBitArray would be very wasteful in this particular case.