CFMutableBitVector

Overview

CFMutableBitVector objects manage dynamic bit vectors. The basic interface for managing bit vectors is provided by CFBitVector. CFMutableBitVector adds functions to modify the contents of a bit vector.

You create a mutable bit vector object using either the CFBitVectorCreateMutable or CFBitVectorCreateMutableCopy function. You add to and remove from a bit vector by altering the size of the bit vector with the CFBitVectorSetCount function

Topics

Creating a CFMutableBitVector Object

CFBitVectorCreateMutable

Creates a mutable bit vector.

CFBitVectorCreateMutableCopy

Creates a new mutable bit vector from a pre-existing bit vector.

Modifying a Bit Vector

CFBitVectorFlipBitAtIndex

Flips a bit value in a bit vector.

CFBitVectorFlipBits

Flips a range of bit values in a bit vector.

CFBitVectorSetAllBits

Sets all bits in a bit vector to a particular value.

CFBitVectorSetBitAtIndex

Sets the value of a particular bit in a bit vector.

CFBitVectorSetBits

Sets a range of bits in a bit vector to a particular value.

CFBitVectorSetCount

Changes the size of a mutable bit vector.

Data Types

CFMutableBitVectorRef

A reference to a mutable bit vector object.

See Also

Opaque Types

CFFileDescriptor

The CFFileDescriptor provides an opaque type to monitor file descriptors for read and write activity via CFRunLoop.

CFStringTokenizer

CFStringTokenizer allows you to tokenize strings into words, sentences or paragraphs in a language-neutral way. It supports languages such as Japanese and Chinese that do not delimit words by spaces, as well as de-compounding German compounds. You can obtain Latin transcription for tokens. It also provides language identification API.