Mercurial > projects > dstep
comparison dstep/corefoundation/CFData.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.CFData; | |
8 | |
9 import dstep.corefoundation.CFBase; | |
10 import dstep.objc.bridge.Bridge; | |
11 import dstep.objc.objc : id; | |
12 | |
13 struct __CFData; | |
14 alias __CFData* CFDataRef; | |
15 alias __CFData* CFMutableDataRef; | |
16 | |
17 extern (C) | |
18 { | |
19 uint CFDataGetTypeID (); | |
20 CFDataRef CFDataCreate (CFAllocatorRef allocator, char* bytes, int length); | |
21 CFDataRef CFDataCreateWithBytesNoCopy (CFAllocatorRef allocator, char* bytes, int length, CFAllocatorRef bytesDeallocator); | |
22 CFDataRef CFDataCreateCopy (CFAllocatorRef allocator, CFDataRef theData); | |
23 CFMutableDataRef CFDataCreateMutable (CFAllocatorRef allocator, int capacity); | |
24 CFMutableDataRef CFDataCreateMutableCopy (CFAllocatorRef allocator, int capacity, CFDataRef theData); | |
25 int CFDataGetLength (CFDataRef theData); | |
26 char* CFDataGetBytePtr (CFDataRef theData); | |
27 char* CFDataGetMutableBytePtr (CFMutableDataRef theData); | |
28 void CFDataGetBytes (CFDataRef theData, CFRange range, char* buffer); | |
29 void CFDataSetLength (CFMutableDataRef theData, int length); | |
30 void CFDataIncreaseLength (CFMutableDataRef theData, int extraLength); | |
31 void CFDataAppendBytes (CFMutableDataRef theData, char* bytes, int length); | |
32 void CFDataReplaceBytes (CFMutableDataRef theData, CFRange range, char* newBytes, int newLength); | |
33 void CFDataDeleteBytes (CFMutableDataRef theData, CFRange range); | |
34 } |