/third_party/rust/crates/regex/regex-capi/src/ |
D | rure.rs | 102 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/ |
D | rust_slice.rs | 17 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
|
D | rust_vec.rs | 83 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/ |
D | rust_string.rs | 30 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()
|
D | rust_slice.rs | 8 let rust_slice = RustSlice::from_raw_parts(ptr, len); in slice_new()
|
D | exception.rs | 11 let slice = unsafe { slice::from_raw_parts(ptr, len) }; in exception()
|
D | rust_str.rs | 24 let slice = unsafe { slice::from_raw_parts(ptr, len) }; in str_from()
|
/third_party/rust/crates/cxx/tests/ffi/ |
D | cast.rs | 7 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/ |
D | mmap.rs | 37 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/ |
D | io_slice.rs | 44 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/ |
D | io_slice.rs | 48 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/ |
D | addr.rs | 77 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/ |
D | callbacks.rs | 197 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/ |
D | libc_auxv.rs | 66 unsafe { slice::from_raw_parts(phdr.cast(), phnum) } in exe_phdrs_slice()
|
D | mustang_auxv.rs | 65 unsafe { slice::from_raw_parts(phdr.cast(), phnum) } in exe_phdrs_slice()
|
/third_party/rust/crates/rustix/src/backend/libc/net/ |
D | addr.rs | 154 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/ |
D | utsname.rs | 61 unsafe { std::slice::from_raw_parts(slice.as_ptr().cast(), length) }; in cast_and_trim()
|
/third_party/rust/crates/rust-openssl/openssl/src/ |
D | bio.rs | 66 slice::from_raw_parts(ptr as *const _ as *const _, len as usize) in get_buf()
|
D | asn1.rs | 460 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/ |
D | zero-size-array-align.rs | 26 ::std::slice::from_raw_parts(self.as_ptr(), len) in as_slice()
|
D | derive-hash-struct-with-incomplete-array.rs | 26 ::std::slice::from_raw_parts(self.as_ptr(), len) in as_slice()
|
D | issue-643-inner-struct.rs | 26 ::std::slice::from_raw_parts(self.as_ptr(), len) in as_slice()
|
D | zero-sized-array.rs | 26 ::std::slice::from_raw_parts(self.as_ptr(), len) in as_slice()
|
/third_party/rust/crates/atty/src/ |
D | lib.rs | 142 let s = slice::from_raw_parts( in msys_tty_on()
|
/third_party/rust/crates/bindgen/bindgen-tests/tests/expectations/tests/libclang-9/ |
D | issue-643-inner-struct.rs | 26 ::std::slice::from_raw_parts(self.as_ptr(), len) in as_slice()
|