comparison dstep/corefoundation/CFBitVector.d @ 11:07194b026fa4

Added bindings to a couple of frameworks, new license + some other things
author Jacob Carlborg <doob@me.com>
date Sat, 01 Aug 2009 15:03:28 +0200
parents
children
comparison
equal deleted inserted replaced
10:27e00625790b 11:07194b026fa4
1 /**
2 * Copyright: Copyright (c) 2009 Jacob Carlborg.
3 * Authors: Jacob Carlborg
4 * Version: Initial created: Jul 12, 2009
5 * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0)
6 */
7 module dstep.corefoundation.CFBitVector;
8
9 import dstep.corefoundation.CFBase;
10 import dstep.objc.bridge.Bridge;
11 import dstep.objc.objc : id;
12
13 alias uint CFBit;
14 struct __CFBitVector;
15 alias __CFBitVector* CFBitVectorRef;
16 alias __CFBitVector* CFMutableBitVectorRef;
17
18 extern (C)
19 {
20 uint CFBitVectorGetTypeID ();
21 CFBitVectorRef CFBitVectorCreate (CFAllocatorRef allocator, char* bytes, int numBits);
22 CFBitVectorRef CFBitVectorCreateCopy (CFAllocatorRef allocator, CFBitVectorRef bv);
23 CFMutableBitVectorRef CFBitVectorCreateMutable (CFAllocatorRef allocator, int capacity);
24 CFMutableBitVectorRef CFBitVectorCreateMutableCopy (CFAllocatorRef allocator, int capacity, CFBitVectorRef bv);
25 int CFBitVectorGetCount (CFBitVectorRef bv);
26 int CFBitVectorGetCountOfBit (CFBitVectorRef bv, CFRange range, uint value);
27 ubyte CFBitVectorContainsBit (CFBitVectorRef bv, CFRange range, uint value);
28 uint CFBitVectorGetBitAtIndex (CFBitVectorRef bv, int idx);
29 void CFBitVectorGetBits (CFBitVectorRef bv, CFRange range, char* bytes);
30 int CFBitVectorGetFirstIndexOfBit (CFBitVectorRef bv, CFRange range, uint value);
31 int CFBitVectorGetLastIndexOfBit (CFBitVectorRef bv, CFRange range, uint value);
32 void CFBitVectorSetCount (CFMutableBitVectorRef bv, int count);
33 void CFBitVectorFlipBitAtIndex (CFMutableBitVectorRef bv, int idx);
34 void CFBitVectorFlipBits (CFMutableBitVectorRef bv, CFRange range);
35 void CFBitVectorSetBitAtIndex (CFMutableBitVectorRef bv, int idx, uint value);
36 void CFBitVectorSetBits (CFMutableBitVectorRef bv, CFRange range, uint value);
37 void CFBitVectorSetAllBits (CFMutableBitVectorRef bv, uint value);
38 }