MCPcopy 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

fetchFunction · 0.45
name_to_indexFunction · 0.45
ptsnameFunction · 0.45
name_to_indexFunction · 0.45
into_with_c_strMethod · 0.45
into_c_strMethod · 0.45
as_strMethod · 0.45
as_refMethod · 0.45
serverFunction · 0.45
clientFunction · 0.45
do_test_unix_msgFunction · 0.45

Calls 2

as_bytes_with_nulMethod · 0.80
lenMethod · 0.45

Tested by 10

fetchFunction · 0.36
test_abstract_unix_msgFunction · 0.36
test_unix_msg_with_comboFunction · 0.36
test_abstract_unix_msgFunction · 0.36
test_unix_msg_with_comboFunction · 0.36
test_dir_seekFunction · 0.36