Searched refs:as_c_str (Results 1 - 6 of 6) sorted by relevance
/third_party/rust/crates/rustix/src/path/ |
H A D | dec_int.rs | 46 // `u64`, and we add one for a NUL terminator for `as_c_str`. 80 pub fn as_c_str(&self) -> &CStr { in as_c_str() functions
|
H A D | arg.rs | 913 Ok(Cow::Borrowed(self.as_c_str())) in to_string_lossy() 921 Ok(Cow::Owned(self.as_c_str().to_owned())) in to_string_lossy() 930 f(self.as_c_str()) in into_with_c_str()
|
/third_party/rust/crates/rustix/benches/ |
H A D | mod.rs | 63 std::ffi::CString::new("/").unwrap().as_c_str().as_ptr() as _,
|
/third_party/rust/crates/rustix/tests/path/ |
H A D | arg.rs | 138 assert_eq!(cstr!("43110"), t.as_c_str()); in test_arg()
|
/third_party/rust/crates/nix/test/ |
H A D | test_unistd.rs | 320 $(CString::new($pathname).unwrap().as_c_str(), )* in syscall_cstr_ref() 332 $(CString::new($pathname).unwrap().as_c_str(), )* in syscall_cstring() 405 execve_test_factory!(test_execve, execve, CString::new("/system/bin/sh").unwrap().as_c_str()); 412 execve_test_factory!(test_execve, execve, CString::new("/bin/sh").unwrap().as_c_str()); 420 execve_test_factory!(test_execve, execve, CString::new("/bin/sh").unwrap().as_c_str());
|
/third_party/rust/crates/serde/test_suite/tests/ |
H A D | test_ser.rs | 587 assert_ser_tokens(cstring.as_c_str(), &[Token::Bytes(b"abc")]); in test_cstr()
|
Completed in 5 milliseconds