/third_party/rust/crates/rust-openssl/openssl/src/ |
D | sha.rs | 54 ffi::SHA1(data.as_ptr(), data.len(), hash.as_mut_ptr() as *mut _); 65 ffi::SHA224(data.as_ptr(), data.len(), hash.as_mut_ptr() as *mut _); 76 ffi::SHA256(data.as_ptr(), data.len(), hash.as_mut_ptr() as *mut _); 87 ffi::SHA384(data.as_ptr(), data.len(), hash.as_mut_ptr() as *mut _); 98 ffi::SHA512(data.as_ptr(), data.len(), hash.as_mut_ptr() as *mut _); 128 ffi::SHA1_Init( ctx.as_mut_ptr()); 150 ffi::SHA1_Final(hash.as_mut_ptr() as *mut _, &mut self.0); 174 ffi::SHA224_Init(ctx.as_mut_ptr()); 196 ffi::SHA224_Final(hash.as_mut_ptr() as *mut _, &mut self.0); 220 ffi::SHA256_Init(ctx.as_mut_ptr()); [all …]
|
/third_party/rust/crates/rustix/src/backend/libc/time/ |
D | syscalls.rs | 59 ret(libc_clock_getres(id as c::clockid_t, timespec.as_mut_ptr())).unwrap(); in clock_getres() 72 let _ = c::clock_getres(id as c::clockid_t, timespec.as_mut_ptr()); in clock_getres() 86 old_timespec.as_mut_ptr(), in clock_getres_old() 110 timespec.as_mut_ptr(), in clock_gettime() 128 ret(c::clock_gettime(id as c::clockid_t, timespec.as_mut_ptr())).unwrap(); in clock_gettime() 142 old_timespec.as_mut_ptr(), in clock_gettime_old() 194 timespec.as_mut_ptr(), in clock_gettime_dynamic() 208 ret(c::clock_gettime(id as c::clockid_t, timespec.as_mut_ptr()))?; in clock_gettime_dynamic() 225 old_timespec.as_mut_ptr(), in clock_gettime_dynamic_old() 260 result.as_mut_ptr(), in timerfd_settime() [all …]
|
/third_party/rust/crates/rustix/tests/mm/ |
D | mlock.rs | 13 match rustix::mm::mlock(buf.as_mut_ptr().cast::<c_void>(), buf.len()) { in test_mlock() 14 Ok(()) => rustix::mm::munlock(buf.as_mut_ptr().cast::<c_void>(), buf.len()).unwrap(), in test_mlock() 30 buf.as_mut_ptr().cast::<c_void>(), in test_mlock_with() 34 Ok(()) => rustix::mm::munlock(buf.as_mut_ptr().cast::<c_void>(), buf.len()).unwrap(), in test_mlock_with() 66 buf.as_mut_ptr().cast::<c_void>(), in test_mlock_with_onfault() 70 Ok(()) => rustix::mm::munlock(buf.as_mut_ptr().cast::<c_void>(), buf.len()).unwrap(), in test_mlock_with_onfault()
|
/third_party/rust/crates/nix/src/ |
D | pty.rs | 211 let name_buf_ptr = name_buf.as_mut_ptr(); in ptsname_r() 266 master.as_mut_ptr(), in openpty() 267 slave.as_mut_ptr(), in openpty() 276 master.as_mut_ptr(), in openpty() 277 slave.as_mut_ptr(), in openpty() 287 master.as_mut_ptr(), in openpty() 288 slave.as_mut_ptr(), in openpty() 297 master.as_mut_ptr(), in openpty() 298 slave.as_mut_ptr(), in openpty() 359 let res = libc::forkpty(master.as_mut_ptr(), ptr::null_mut(), term, win);
|
/third_party/rust/crates/bindgen/bindgen-tests/tests/expectations/tests/ |
D | wrap_unsafe_ops_class.rs | 21 pub fn as_mut_ptr(&mut self) -> *mut T { in as_mut_ptr() method 30 unsafe { ::std::slice::from_raw_parts_mut(self.as_mut_ptr(), len) } in as_mut_slice() 48 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default() 64 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default() 86 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default() 109 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default() 136 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default() 151 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default() 165 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default()
|
D | canonical-types.rs | 23 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default() 47 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default() 61 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default() 75 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default() 102 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default() 143 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default() 197 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default() 237 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default() 277 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default()
|
D | issue-493.rs | 70 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default() 96 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default() 105 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default() 121 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default() 142 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default() 163 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default() 172 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default()
|
D | union_template.rs | 23 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default() 37 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default() 46 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default() 60 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default()
|
D | inherit-from-template-instantiation-with-vtable.rs | 22 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default() 50 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default() 78 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default() 94 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default() 125 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default() 153 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default()
|
D | class.rs | 21 pub fn as_mut_ptr(&mut self) -> *mut T { in as_mut_ptr() method 30 ::std::slice::from_raw_parts_mut(self.as_mut_ptr(), len) in as_mut_slice() 81 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default() 147 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default() 220 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default() 274 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default() 360 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default() 401 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default() 441 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default()
|
D | template.rs | 20 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default() 35 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default() 263 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default() 285 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default() 294 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default() 311 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default() 351 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default() 367 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default() 407 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default() 462 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default() [all …]
|
D | virtual_interface.rs | 38 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default() 69 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default() 96 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default() 124 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default()
|
D | derive-partialeq-pointer.rs | 38 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default() 70 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default() 92 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default() 127 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default()
|
D | nsBaseHashtable.rs | 35 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default() 50 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default() 59 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default()
|
D | inline_namespace_no_ns_enabled.rs | 25 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default() 40 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default() 49 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default()
|
D | issue-662-cannot-find-T-in-this-scope.rs | 18 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default() 33 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default() 48 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default()
|
D | virtual_inheritance.rs | 25 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default() 42 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default() 58 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default()
|
D | constructors.rs | 41 TestOverload_TestOverload(__bindgen_tmp.as_mut_ptr(), arg1); in new() 47 TestOverload_TestOverload1(__bindgen_tmp.as_mut_ptr(), arg1); in new1() 77 TestPublicNoArgs_TestPublicNoArgs(__bindgen_tmp.as_mut_ptr()); in new()
|
D | typeref.rs | 72 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default() 81 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default() 116 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default() 155 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default()
|
D | union_with_nesting.rs | 66 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default() 117 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default() 139 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default() 169 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default()
|
D | derive-hash-struct-with-pointer.rs | 44 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default() 84 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default() 124 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default() 164 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default()
|
/third_party/rust/crates/cxx/src/symbols/ |
D | rust_string.rs | 12 let this = this.as_mut_ptr(); in string_new() 19 let this = this.as_mut_ptr(); in string_clone() 33 let this = this.as_mut_ptr(); in string_from_utf8() 50 let this = this.as_mut_ptr(); in string_from_utf8_lossy() 63 let this = this.as_mut_ptr(); in string_from_utf16() 79 let this = this.as_mut_ptr(); in string_from_utf16_lossy()
|
D | rust_str.rs | 10 let this = this.as_mut_ptr(); in str_new() 17 let this = this.as_mut_ptr(); in str_ref() 27 let this = this.as_mut_ptr(); in str_from()
|
/third_party/rust/crates/nix/test/sys/ |
D | test_mman.rs | 50 slice.as_mut_ptr() as *mut c_void, in test_mremap_grow() 59 slice.as_mut_ptr() as *mut c_void, in test_mremap_grow() 107 slice.as_mut_ptr() as *mut c_void, in test_mremap_shrink() 116 assert_eq!(mem, slice.as_mut_ptr() as *mut c_void); in test_mremap_shrink()
|
/third_party/rust/crates/minimal-lexical/src/ |
D | stackvec.rs | 82 ptr::write(self.as_mut_ptr().add(self.len()), value); in push_unchecked() 110 unsafe { ptr::read(self.as_mut_ptr().add(self.len())) } in pop_unchecked() 137 let dst = self.as_mut_ptr().add(index); in extend_unchecked() 183 let dst = self.as_mut_ptr().add(old_len + index); in resize_unchecked() 297 let ptr = self.data.as_mut_ptr() as *mut bigint::Limb; in deref_mut()
|