pub fn from_buffer(buffer: &[u8]) -> CFData {
        unsafe {
            let data_ref = CFDataCreate(kCFAllocatorDefault,
                                        buffer.as_ptr(),
                                        buffer.len().to_CFIndex());
            TCFType::wrap_under_create_rule(data_ref)
        }
    }
/// Creates a CFData around a copy `buffer`
Creates a CFData around a copy `buffer`
Creates a CFData around a copy ` buffer `
pub fn from_buffer(buffer: &[u8]) -> CFData {
        unsafe {
            let data_ref = CFDataCreate(kCFAllocatorDefault,
                                        buffer.as_ptr(),
                                        buffer.len().to_CFIndex());
            TCFType::wrap_under_create_rule(data_ref)
        }
    }
pub fn from_buffer ( buffer : & [ u8 ] ) -> CFData { unsafe { let data_ref = CFDataCreate ( kCFAllocatorDefault , buffer . as_ptr ( ) , buffer . len ( ) . to_CFIndex ( ) ) ; TCFType :: wrap_under_create_rule ( data_ref ) } }
Creates a CFData around a copy `buffer`
Creates a CFData around a copy ` buffer `
buffer
&[u8]
buffer
&[u8]