]> gitweb @ CieloNegro.org - bindings-CoreFoundation.git/blobdiff - Bindings/CoreFoundation/CFData.hsc
CFData.h
[bindings-CoreFoundation.git] / Bindings / CoreFoundation / CFData.hsc
diff --git a/Bindings/CoreFoundation/CFData.hsc b/Bindings/CoreFoundation/CFData.hsc
new file mode 100644 (file)
index 0000000..473aec2
--- /dev/null
@@ -0,0 +1,26 @@
+#include <bindings.dsl.h>
+#include <CoreFoundation/CFData.h>
+
+module Bindings.CoreFoundation.CFData where
+#strict_import
+import Bindings.CoreFoundation.CFBase
+
+#opaque_t  __CFData
+#synonym_t CFDataRef       , Ptr <__CFData>
+#synonym_t CFMutableDataRef, Ptr <__CFData>
+
+#ccall   CFDataGetTypeID            , IO <CFTypeID>
+#ccall   CFDataCreate               , <CFAllocatorRef> -> Ptr <UInt8> -> <CFIndex> -> IO <CFDataRef>
+#ccall   CFDataCreateWithBytesNoCopy, <CFAllocatorRef> -> Ptr <UInt8> -> <CFIndex> -> <CFAllocatorRef> -> IO <CFDataRef>
+#ccall   CFDataCreateCopy           , <CFAllocatorRef> -> <CFDataRef> -> IO <CFDataRef>
+#ccall   CFDataCreateMutable        , <CFAllocatorRef> -> <CFIndex> -> IO <CFMutableDataRef>
+#ccall   CFDataCreateMutableCopy    , <CFAllocatorRef> -> <CFIndex> -> <CFDataRef> -> IO <CFMutableDataRef>
+#ccall   CFDataGetLength            , <CFDataRef> -> IO <CFIndex>
+#ccall   CFDataGetBytePtr           , <CFDataRef> -> IO (Ptr <UInt8>)
+#ccall   CFDataGetMutableBytePtr    , <CFMutableDataRef> -> IO (Ptr <UInt8>)
+#cinline CFDataGetBytes             , <CFDataRef> -> Ptr <CFRange> -> Ptr <UInt8> -> IO ()
+#ccall   CFDataSetLength            , <CFMutableDataRef> -> <CFIndex> -> IO ()
+#ccall   CFDataIncreaseLength       , <CFMutableDataRef> -> <CFIndex> -> IO ()
+#ccall   CFDataAppendBytes          , <CFMutableDataRef> -> Ptr <UInt8> -> <CFIndex> -> IO ()
+#cinline CFDataReplaceBytes         , <CFMutableDataRef> -> Ptr <CFRange> -> Ptr <UInt8> -> <CFIndex> -> IO ()
+#cinline CFDataDeleteBytes          , <CFMutableDataRef> -> Ptr <CFRange> -> IO ()