Skip to content

Commit

Permalink
Add CFDataGetBytes to CFData bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
wezm committed Oct 14, 2019
1 parent 6143ce1 commit b2a4a0e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core-foundation-sys/src/data.rs
Expand Up @@ -9,7 +9,7 @@

use std::os::raw::c_void;

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

#[repr(C)]
pub struct __CFData(c_void);
Expand All @@ -25,6 +25,7 @@ extern {
bytes: *const u8, length: CFIndex) -> CFDataRef;
//fn CFDataFind
pub fn CFDataGetBytePtr(theData: CFDataRef) -> *const u8;
pub fn CFDataGetBytes(theData: CFDataRef, range: CFRange, buffer: *mut u8);
pub fn CFDataGetLength(theData: CFDataRef) -> CFIndex;

pub fn CFDataGetTypeID() -> CFTypeID;
Expand Down

0 comments on commit b2a4a0e

Please sign in to comment.