Function

CFBitVectorSetBitAtIndex

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

Declaration

void CFBitVectorSetBitAtIndex(CFMutableBitVectorRef bv, CFIndex idx, CFBit value);

Parameters

bv

The bit vector to modify.

idx

The index of the bit value to set. The index must be in the range 0…N-1, where N is the count of the vector.

value

The bit value to which to set the bit at index idx.

See Also

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.

CFBitVectorSetBits

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

CFBitVectorSetCount

Changes the size of a mutable bit vector.