Lines Matching refs:ffi
10 pub struct MemBioSlice<'a>(*mut ffi::BIO, PhantomData<&'a [u8]>);
15 ffi::BIO_free_all(self.0); in drop()
22 ffi::init(); in new()
35 pub fn as_ptr(&self) -> *mut ffi::BIO { in as_ptr()
40 pub struct MemBio(*mut ffi::BIO);
45 ffi::BIO_free_all(self.0); in drop()
52 ffi::init(); in new()
54 let bio = unsafe { cvt_p(ffi::BIO_new(ffi::BIO_s_mem()))? }; in new()
58 pub fn as_ptr(&self) -> *mut ffi::BIO { in as_ptr()
65 let len = ffi::BIO_get_mem_data(self.0, &mut ptr); in get_buf()
71 pub unsafe fn from_ptr(bio: *mut ffi::BIO) -> MemBio { in from_ptr()
78 use ffi::BIO_new_mem_buf;
81 unsafe fn BIO_new_mem_buf(buf: *const ::libc::c_void, len: ::libc::c_int) -> *mut ffi::BIO {
82 ffi::BIO_new_mem_buf(buf as *mut _, len)