How to bitwise-and CFBitVector
问题 I have two instances of CFMutableBitVector , like so: CFBitVectorRef ref1, ref2; How can I do bit-wise operations to these guys? For right now, I only care about and , but obviously xor , or , etc would be useful to know. Obviously I can iterate through the bits in the vector, but that seems silly when I'm working at the bit level. I feel like there are just some Core Foundation functions that I'm missing, but I can't find them. Thanks, Kurt 回答1: Well a CFBitVectorRef is a typedef const