cfbitvector

How to bitwise-and CFBitVector

十年热恋 提交于 2019-12-31 06:58:06
问题 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

How to bitwise-and CFBitVector

谁说胖子不能爱 提交于 2019-12-02 12:07:06
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 Well a CFBitVectorRef is a typedef const struct __CFBitVector *CFBitVectorRef; which is a struct __CFBitVector { CFRuntimeBase _base; CFIndex _count; /*