BitVector

1.2.1

A wrapper around CFBitVector and CFMutableBitVector.
aggie33/BitVector

What's New

BitVector 1.2.1

2023-07-20T14:49:19Z

Fixed some bugs.

BitVector

A wrapper around CFBitVector and CFMutableBitVector.

CF(Mutable)BitVector BitVector
CFBitVectorCreate init(bytes:bitCount:)
CFBitVectorContainsBit contains(_:in:)
CFBitVectorGetBitAtIndex subscript(_:)
CFBitVectorGetBits copyBits(in:to:)
CFBitVectorGetCount count
CFBitVectorGetCountOfBit count(of:in:)
CFBitVectorGetFirstIndexOfBit firstIndex(of:in:)
CFBitVectorGetLastIndexOfBit lastIndex(of:in:)
CFBitVectorCreateMutable init()
CFBitVectorFlipBitAtIndex flipBit(at:)
CFBitVectorFlipBits flipBits(in:)
CFBitVectorSetAllBits setAllBits(to:)
CFBitVectorSetBitAtIndex subscript(_:)
CFBitVectorSetBits setBits(in:to:)
CFBitVectorSetCount count

In addition, BitVector conforms to Equatable, Hashable, CustomStringConvertible, Sequence, Collection, MutableCollection, RangeReplaceableCollection, BidirectionalCollection, and RandomAccessCollection. Bit vectors can also be created with an array literal.

Bits are represented with the new Bit type, which is an enum. They can be created with an integer or boolean literal.

Description

  • Swift Tools 5.4.0
View More Packages from this Author

Dependencies

Last updated: Fri Oct 18 2024 17:46:00 GMT-0900 (Hawaii-Aleutian Daylight Time)