CFBitVectorCreateMutableCopy(_:_:_:)
Creates a new mutable bit vector from a pre-existing bit vector.
Declaration
func CFBitVectorCreateMutableCopy(_ allocator: CFAllocator!, _ capacity: CFIndex, _ bv: CFBitVector!) -> CFMutableBitVector!Parameters
- allocator:
The allocator to use to allocate memory for the new object. Pass
NULLor kCFAllocatorDefault to use the current default allocator. - capacity:
The maximum number of values that can be contained by the new bit vector. The bit vector starts with the same number of values as
bvand can grow to this number of values (it can have less).Pass
0to specify that the maximum capacity is not limited. If non-0,capacitymust be large enough to hold all bit values frombv. - bv:
The bit vector to copy.
Return Value
A new bit vector holding the same bit values as bv. Ownership follows the The Create Rule