MCPcopy Index your code
hub / github.com/RustPython/RustPython / borrow_buf

Method borrow_buf

crates/vm/src/function/buffer.rs:42–44  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

40
41impl ArgBytesLike {
42 pub fn borrow_buf(&self) -> BorrowedValue<'_, [u8]> {
43 unsafe { self.0.contiguous_unchecked() }
44 }
45
46 pub fn with_ref<F, R>(&self, f: F) -> R
47 where

Callers 15

set_ecdh_curveMethod · 0.45
writeMethod · 0.45
sendMethod · 0.45
sendallMethod · 0.45
sendtoMethod · 0.45
sendmsgMethod · 0.45
sendmsg_afalgMethod · 0.45
pack_cmsgs_to_sendMethod · 0.45
inet_ntoaFunction · 0.45
getaddrinfoFunction · 0.45
inet_ntopFunction · 0.45

Calls 1

contiguous_uncheckedMethod · 0.80

Tested by 1

write_inputFunction · 0.36