Home
last modified time | relevance | path

Searched refs:as_mut_ptr (Results 1 – 25 of 351) sorted by relevance

12345678910>>...15

/third_party/rust/crates/rust-openssl/openssl/src/
Dsha.rs54 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/
Dsyscalls.rs59 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/
Dmlock.rs13 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/
Dpty.rs211 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/
Dwrap_unsafe_ops_class.rs21 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()
Dcanonical-types.rs23 ::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()
Dissue-493.rs70 ::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()
Dunion_template.rs23 ::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()
Dinherit-from-template-instantiation-with-vtable.rs22 ::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()
Dclass.rs21 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()
Dtemplate.rs20 ::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 …]
Dvirtual_interface.rs38 ::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()
Dderive-partialeq-pointer.rs38 ::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()
DnsBaseHashtable.rs35 ::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()
Dinline_namespace_no_ns_enabled.rs25 ::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()
Dissue-662-cannot-find-T-in-this-scope.rs18 ::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()
Dvirtual_inheritance.rs25 ::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()
Dconstructors.rs41 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()
Dtyperef.rs72 ::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()
Dunion_with_nesting.rs66 ::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()
Dderive-hash-struct-with-pointer.rs44 ::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/
Drust_string.rs12 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()
Drust_str.rs10 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/
Dtest_mman.rs50 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/
Dstackvec.rs82 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()

12345678910>>...15