1 #include <bindings.dsl.h>
2 #include <CoreFoundation/CFData.h>
4 module Bindings.CoreFoundation.CFData where
6 import Bindings.CoreFoundation.CFBase
9 #synonym_t CFDataRef , Ptr <__CFData>
10 #synonym_t CFMutableDataRef, Ptr <__CFData>
12 #ccall CFDataGetTypeID , IO <CFTypeID>
13 #ccall CFDataCreate , <CFAllocatorRef> -> Ptr <UInt8> -> <CFIndex> -> IO <CFDataRef>
14 #ccall CFDataCreateWithBytesNoCopy, <CFAllocatorRef> -> Ptr <UInt8> -> <CFIndex> -> <CFAllocatorRef> -> IO <CFDataRef>
15 #ccall CFDataCreateCopy , <CFAllocatorRef> -> <CFDataRef> -> IO <CFDataRef>
16 #ccall CFDataCreateMutable , <CFAllocatorRef> -> <CFIndex> -> IO <CFMutableDataRef>
17 #ccall CFDataCreateMutableCopy , <CFAllocatorRef> -> <CFIndex> -> <CFDataRef> -> IO <CFMutableDataRef>
18 #ccall CFDataGetLength , <CFDataRef> -> IO <CFIndex>
19 #ccall CFDataGetBytePtr , <CFDataRef> -> IO (Ptr <UInt8>)
20 #ccall CFDataGetMutableBytePtr , <CFMutableDataRef> -> IO (Ptr <UInt8>)
21 #cinline CFDataGetBytes , <CFDataRef> -> Ptr <CFRange> -> Ptr <UInt8> -> IO ()
22 #ccall CFDataSetLength , <CFMutableDataRef> -> <CFIndex> -> IO ()
23 #ccall CFDataIncreaseLength , <CFMutableDataRef> -> <CFIndex> -> IO ()
24 #ccall CFDataAppendBytes , <CFMutableDataRef> -> Ptr <UInt8> -> <CFIndex> -> IO ()
25 #cinline CFDataReplaceBytes , <CFMutableDataRef> -> Ptr <CFRange> -> Ptr <UInt8> -> <CFIndex> -> IO ()
26 #cinline CFDataDeleteBytes , <CFMutableDataRef> -> Ptr <CFRange> -> IO ()