CFBitVector

Overview

CFBitVector and its derived mutable type, CFMutableBitVector, manage ordered collections of bit values, which are either 0 or 1. CFBitVector creates static bit vectors and CFMutableBitVector creates dynamic bit vectors.

Topics

Creating a Bit Vector

CFBitVectorCreate

Creates an immutable bit vector from a block of memory.

CFBitVectorCreateCopy

Creates an immutable bit vector that is a copy of another bit vector.

Getting Information About a Bit Vector

CFBitVectorContainsBit

Returns whether a bit vector contains a particular bit value.

CFBitVectorGetBitAtIndex

Returns the bit value at a given index in a bit vector.

CFBitVectorGetBits

Returns the bit values in a range of indices in a bit vector.

CFBitVectorGetCount

Returns the number of bit values in a bit vector.

CFBitVectorGetCountOfBit

Counts the number of times a certain bit value occurs within a range of bits in a bit vector.

CFBitVectorGetFirstIndexOfBit

Locates the first occurrence of a certain bit value within a range of bits in a bit vector.

CFBitVectorGetLastIndexOfBit

Locates the last occurrence of a certain bit value within a range of bits in a bit vector.

Getting the CFBitVector Type ID

CFBitVectorGetTypeID

Returns the type identifier for the CFBitVector opaque type.

Data Types

CFBit

A binary value of either 0 or 1.

CFBitVectorRef

A reference to an immutable 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.