Home
last modified time | relevance | path

Searched refs:from_ptr (Results 1 - 9 of 9) sorted by relevance

/commonlibrary/rust/ylong_http/ylong_http_client/src/util/c_openssl/
H A Dforeign.rs25 fn from_ptr(ptr: *mut Self::CStruct) -> Self; in from_ptr() functions
37 unsafe fn from_ptr<'a>(ptr: *mut Self::CStruct) -> &'a Self { in from_ptr() functions
75 fn from_ptr(ptr: *mut $ctype) -> $owned { in from_ptr() functions
98 unsafe{ crate::util::c_openssl::foreign::ForeignRef::from_ptr(self.0) } in deref()
H A Dx509.rs71 Ok(X509::from_ptr(ptr))
79 Ok(X509::from_ptr(ptr))
162 X509::from_ptr(self.as_ptr()) in to_owned()
175 str::from_utf8(ffi::CStr::from_ptr(s).to_bytes()).unwrap_or("")
295 Ok(X509Ref::from_ptr(check_ptr(X509_STORE_CTX_get0_cert(
H A Derror.rs84 let bytes = CStr::from_ptr(data as *const _).to_bytes(); in get()
109 let bytes = CStr::from_ptr(data as *const _).to_bytes(); in get()
121 let file = CStr::from_ptr(file).to_owned(); in get()
125 Some(CStr::from_ptr(func).to_owned()) in get()
151 let bytes = CStr::from_ptr(lib_error as *const _).to_bytes();
162 let bytes = unsafe { core::ffi::CStr::from_ptr(func_error as *const _).to_bytes() };
181 let bytes = CStr::from_ptr(reason_error as *const _).to_bytes();
H A Dstack.rs46 unsafe { StackRef::from_ptr(self.0) } in deref()
92 .map(|i| T::Ref::from_ptr(OPENSSL_sk_value(self.stack.as_stack(), i) as *mut _)) in next()
112 false => Some(T::from_ptr(ptr as *mut _)),
132 fn from_ptr(ptr: *mut Self::CStruct) -> Self { in from_ptr() functions
153 .map(|i| T::from_ptr(OPENSSL_sk_value(self.stack as *mut _, i) as *mut _)) in next()
/commonlibrary/c_utils/base/test/unittest/rust/
H A Drust_utils_ashmem_test.rs61 let readout_c_str: &CStr = unsafe { CStr::from_ptr(readout_ptr) }; in test_ashmem_ffi_write_read_002()
103 let readout_c_str: &CStr = unsafe { CStr::from_ptr(readout_ptr) }; in test_ashmem_ffi_write_read_003()
138 let readout_c_str: &CStr = unsafe { CStr::from_ptr(readout_ptr) }; in test_ashmem_ffi_write_read_004()
170 let readout_c_str: &CStr = unsafe { CStr::from_ptr(readout_ptr) }; in test_ashmem_ffi_write_read_005()
332 let readout_c_str: &CStr = unsafe { CStr::from_ptr(readout_ptr) }; in test_ashmem_write_read_002()
372 let readout_c_str: &CStr = unsafe { CStr::from_ptr(readout_ptr) }; in test_ashmem_write_read_003()
407 let readout_c_str: &CStr = unsafe { CStr::from_ptr(readout_ptr) }; in test_ashmem_write_read_004()
438 let readout_c_str: &CStr = unsafe { CStr::from_ptr(readout_ptr) }; in test_ashmem_write_read_005()
/commonlibrary/rust/ylong_runtime/ylong_ffrt/src/
H A Dtask.rs70 CStr::from_ptr(c_name) in get_name()
/commonlibrary/rust/ylong_http/ylong_http_client/src/util/c_openssl/ssl/
H A Dssl_base.rs55 Ok(Ssl::from_ptr(ptr))
104 ffi::CStr::from_ptr(ptr as *const _) in ssl_status()
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/process/pty_process/
H A Dsys.rs87 let name = unsafe { CStr::from_ptr(name_buf.as_ptr()) }.to_owned();
/commonlibrary/rust/ylong_json/src/
H A Dadapter.rs1804 let result = String::from_utf8_unchecked(CStr::from_ptr(content).to_bytes().to_vec()); in ut_ylong_json_create_string()
1865 let result = String::from_utf8_unchecked(CStr::from_ptr(content).to_bytes().to_vec()); in ut_ylong_json_get_value_from_string()
1910 let result = String::from_utf8_unchecked(CStr::from_ptr(content).to_bytes().to_vec()); in ut_ylong_json_set_value_to_string()
1918 let result = String::from_utf8_unchecked(CStr::from_ptr(content).to_bytes().to_vec()); in ut_ylong_json_set_value_to_string()
2060 let result = String::from_utf8_unchecked(CStr::from_ptr(content).to_bytes().to_vec()); in ut_ylong_json_get_array_item()
2363 let result = String::from_utf8_unchecked(CStr::from_ptr(content).to_bytes().to_vec()); in ut_ylong_json_get_item_from_array_node()
2529 let result = String::from_utf8_unchecked(CStr::from_ptr(content).to_bytes().to_vec()); in ut_ylong_json_remove_array_node()
3083 let key_str = CStr::from_ptr(key).to_str().unwrap(); in ut_ylong_json_get_all_object_items()

Completed in 8 milliseconds