We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6143ce1 + b2a4a0e commit c9b0702Copy full SHA for c9b0702
core-foundation-sys/src/data.rs
@@ -9,7 +9,7 @@
9
10
use std::os::raw::c_void;
11
12
-use base::{CFAllocatorRef, CFTypeID, CFIndex};
+use base::{CFAllocatorRef, CFTypeID, CFIndex, CFRange};
13
14
#[repr(C)]
15
pub struct __CFData(c_void);
@@ -25,6 +25,7 @@ extern {
25
bytes: *const u8, length: CFIndex) -> CFDataRef;
26
//fn CFDataFind
27
pub fn CFDataGetBytePtr(theData: CFDataRef) -> *const u8;
28
+ pub fn CFDataGetBytes(theData: CFDataRef, range: CFRange, buffer: *mut u8);
29
pub fn CFDataGetLength(theData: CFDataRef) -> CFIndex;
30
31
pub fn CFDataGetTypeID() -> CFTypeID;
0 commit comments