[go: up one dir, main page]

core-foundation-sys 0.2.3

Bindings to Core Foundation for OS X
Documentation
use libc::c_void;

use base::{CFAllocatorRef, CFTypeID, CFIndex};

#[repr(C)]
pub struct __CFData(c_void);

pub type CFDataRef = *const __CFData;

extern {
    /*
     * CFData.h
     */

    pub fn CFDataCreate(allocator: CFAllocatorRef,
                        bytes: *const u8, length: CFIndex) -> CFDataRef;
    //fn CFDataFind
    pub fn CFDataGetBytePtr(theData: CFDataRef) -> *const u8;
    pub fn CFDataGetLength(theData: CFDataRef) -> CFIndex;

    pub fn CFDataGetTypeID() -> CFTypeID;
}