Home
last modified time | relevance | path

Searched refs:from_raw_parts (Results 1 – 25 of 87) sorted by relevance

1234

/third_party/rust/crates/regex/regex-capi/src/
Drure.rs102 let pat = unsafe { slice::from_raw_parts(pattern, length) };
166 let haystack = unsafe { slice::from_raw_parts(haystack, len) };
180 let haystack = unsafe { slice::from_raw_parts(haystack, len) };
199 let haystack = unsafe { slice::from_raw_parts(haystack, len) };
214 let haystack = unsafe { slice::from_raw_parts(haystack, len) };
332 let text = unsafe { slice::from_raw_parts(haystack, len) };
374 let text = unsafe { slice::from_raw_parts(haystack, len) };
479 slice::from_raw_parts(patterns, patterns_count),
480 slice::from_raw_parts(patterns_lengths, patterns_count)
486 let pat = unsafe { slice::from_raw_parts(raw_pat, raw_patl) };
[all …]
/third_party/rust/crates/cxx/src/
Drust_slice.rs17 Self::from_raw_parts(ptr, len) in from_ref()
23 Self::from_raw_parts(ptr, len) in from_mut()
29 unsafe { slice::from_raw_parts(ptr, len) } in as_slice()
38 pub(crate) fn from_raw_parts<T>(ptr: NonNull<T>, len: usize) -> Self { in from_raw_parts() method
Drust_vec.rs83 Self::from(unsafe { Vec::from_raw_parts(ptr, len, cap) }) in from_vec_string()
99 unsafe { Vec::from_raw_parts(ptr, len, cap) } in into_vec_string()
/third_party/rust/crates/cxx/src/symbols/
Drust_string.rs30 let slice = unsafe { slice::from_raw_parts(ptr, len) }; in string_from_utf8()
48 let slice = unsafe { slice::from_raw_parts(ptr, len) }; in string_from_utf8_lossy()
60 let slice = unsafe { slice::from_raw_parts(ptr, len) }; in string_from_utf16()
77 let slice = unsafe { slice::from_raw_parts(ptr, len) }; in string_from_utf16_lossy()
Drust_slice.rs8 let rust_slice = RustSlice::from_raw_parts(ptr, len); in slice_new()
Dexception.rs11 let slice = unsafe { slice::from_raw_parts(ptr, len) }; in exception()
Drust_str.rs24 let slice = unsafe { slice::from_raw_parts(ptr, len) }; in str_from()
/third_party/rust/crates/cxx/tests/ffi/
Dcast.rs7 unsafe { slice::from_raw_parts(ptr, len) } in c_char_to_unsigned()
13 unsafe { slice::from_raw_parts(ptr, len) } in unsigned_to_c_char()
/third_party/rust/crates/rustix/tests/mm/
Dmmap.rs37 let slice = slice::from_raw_parts(addr.cast::<u8>(), 8192); in test_mmap()
69 let slice = slice::from_raw_parts(addr.cast::<u8>(), 8192); in test_mmap_anonymous()
88 let slice = slice::from_raw_parts(addr.cast::<u8>(), 8192); in test_mprotect()
/third_party/rust/crates/rustix/src/backend/libc/io/
Dio_slice.rs44 unsafe { slice::from_raw_parts(self.vec.iov_base as *mut u8, self.vec.iov_len) } in as_slice()
80 unsafe { slice::from_raw_parts(self.vec.iov_base as *mut u8, self.vec.iov_len) } in as_slice()
/third_party/rust/crates/rustix/src/backend/linux_raw/io/
Dio_slice.rs48 unsafe { slice::from_raw_parts(self.vec.iov_base as *mut u8, self.vec.iov_len as usize) } in as_slice()
88 unsafe { slice::from_raw_parts(self.vec.iov_base as *mut u8, self.vec.iov_len as usize) } in as_slice()
/third_party/rust/crates/rustix/src/backend/linux_raw/net/
Daddr.rs77 Some(CStr::from_bytes_with_nul_unchecked(slice::from_raw_parts( in path()
95 unsafe { Some(slice::from_raw_parts(bytes.as_ptr().cast(), bytes.len())) } in abstract_name()
/third_party/rust/crates/rust-openssl/openssl/src/ssl/
Dcallbacks.rs197 let protos = slice::from_raw_parts(inbuf as *const u8, inlen as usize); in raw_alpn_select()
415 let data = slice::from_raw_parts(data as *const u8, len as usize); in raw_get_session()
485 let slice = slice::from_raw_parts(cookie as *const c_uchar as *const u8, cookie_len); in raw_stateless_cookie_verify()
546 slice::from_raw_parts(cookie as *const c_uchar as *const u8, cookie_len as usize); in raw_cookie_verify()
657 let slice = slice::from_raw_parts(input as *const u8, inlen); in raw_custom_ext_parse()
/third_party/rust/crates/rustix/src/backend/linux_raw/param/
Dlibc_auxv.rs66 unsafe { slice::from_raw_parts(phdr.cast(), phnum) } in exe_phdrs_slice()
Dmustang_auxv.rs65 unsafe { slice::from_raw_parts(phdr.cast(), phnum) } in exe_phdrs_slice()
/third_party/rust/crates/rustix/src/backend/libc/net/
Daddr.rs154 Some(CStr::from_bytes_with_nul_unchecked(slice::from_raw_parts( in path()
173 unsafe { Some(slice::from_raw_parts(bytes.as_ptr().cast(), bytes.len())) } in abstract_name()
/third_party/rust/crates/nix/src/sys/
Dutsname.rs61 unsafe { std::slice::from_raw_parts(slice.as_ptr().cast(), length) }; in cast_and_trim()
/third_party/rust/crates/rust-openssl/openssl/src/
Dbio.rs66 slice::from_raw_parts(ptr as *const _ as *const _, len as usize) in get_buf()
Dasn1.rs460 unsafe { slice::from_raw_parts(ASN1_STRING_get0_data(self.as_ptr()), self.len()) } in as_slice()
600 unsafe { slice::from_raw_parts(ASN1_STRING_get0_data(self.as_ptr() as *mut _), self.len()) } in as_slice()
640 unsafe { slice::from_raw_parts(ASN1_STRING_get0_data(self.as_ptr().cast()), self.len()) } in as_slice()
704 slice::from_raw_parts(ffi::OBJ_get0_data(self.as_ptr()), len) in as_slice()
/third_party/rust/crates/bindgen/bindgen-tests/tests/expectations/tests/
Dzero-size-array-align.rs26 ::std::slice::from_raw_parts(self.as_ptr(), len) in as_slice()
Dderive-hash-struct-with-incomplete-array.rs26 ::std::slice::from_raw_parts(self.as_ptr(), len) in as_slice()
Dissue-643-inner-struct.rs26 ::std::slice::from_raw_parts(self.as_ptr(), len) in as_slice()
Dzero-sized-array.rs26 ::std::slice::from_raw_parts(self.as_ptr(), len) in as_slice()
/third_party/rust/crates/atty/src/
Dlib.rs142 let s = slice::from_raw_parts( in msys_tty_on()
/third_party/rust/crates/bindgen/bindgen-tests/tests/expectations/tests/libclang-9/
Dissue-643-inner-struct.rs26 ::std::slice::from_raw_parts(self.as_ptr(), len) in as_slice()

1234