On Thu, Sep 11, 2008 at 6:22 AM, dreamcat7 <[EMAIL PROTECTED]> wrote: > > On 11 Sep 2008, at 13:08, Jean-Daniel Dupas wrote: >> >> That's fine if you love to reinvent the wheel, but that exactly the >> interface provided by CFMutableBitVector. >> >> CFBitVectorCreateMutable() >> CFBitVectorSetBitAtIndex() >> CFBitVectorGetBitAtIndex() >> >> >> And it probably does it better as it will not waste 7 bits for each >> option. >> > > No, in a CFBitVector there is 4-bytes for each bit.
Not true. Internally, CFBitVector only uses 1 bit per bit. It's only the parameter types that are 4-bytes (which makes sense as they are passed in registers anyway). -- Clark S. Cox III [EMAIL PROTECTED] _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]