Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bytecodealliance/rustix
/ as_bytes
Method
as_bytes
src/path/dec_int.rs:241–244 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
239
/// Return the raw byte buffer.
240
#[inline]
241
pub fn as_bytes(&self) -> &[u8] {
242
let bytes = self.as_bytes_with_nul();
243
&bytes[..bytes.len() - 1]
244
}
245
}
246
247
#[cfg(feature =
"std"
)]
Callers
15
fetch
Function · 0.45
name_to_index
Function · 0.45
ptsname
Function · 0.45
name_to_index
Function · 0.45
into_with_c_str
Method · 0.45
into_c_str
Method · 0.45
as_str
Method · 0.45
as_ref
Method · 0.45
server
Function · 0.45
client
Function · 0.45
do_test_unix_msg
Function · 0.45
do_test_unix_msg_unconnected
Function · 0.45
Calls
2
as_bytes_with_nul
Method · 0.80
len
Method · 0.45
Tested by
10
fetch
Function · 0.36
test_abstract_unix_msg
Function · 0.36
test_abstract_unix_msg_unconnected
Function · 0.36
test_unix_msg_with_scm_rights
Function · 0.36
test_unix_msg_with_combo
Function · 0.36
test_abstract_unix_msg
Function · 0.36
test_abstract_unix_msg_unconnected
Function · 0.36
test_unix_msg_with_scm_rights
Function · 0.36
test_unix_msg_with_combo
Function · 0.36
test_dir_seek
Function · 0.36