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

Method as_contiguous_mut

crates/vm/src/protocol/buffer.rs:61–64  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

59 }
60
61 pub fn as_contiguous_mut(&self) -> Option<BorrowedValueMut<'_, [u8]>> {
62 (!self.desc.readonly && self.desc.is_contiguous())
63 .then(|| unsafe { self.contiguous_mut_unchecked() })
64 }
65
66 pub fn from_byte_vector(bytes: Vec<u8>, vm: &VirtualMachine) -> Self {
67 let bytes_len = bytes.len();

Callers 5

ReadFileIntoMethod · 0.80
WSARecvIntoMethod · 0.80
WSARecvFromIntoMethod · 0.80
try_rw_bytes_likeMethod · 0.80
readinto_genericMethod · 0.80

Calls 3

is_contiguousMethod · 0.80
thenMethod · 0.45

Tested by

no test coverage detected