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

Method contiguous_unchecked

crates/vm/src/protocol/buffer.rs:77–79  ·  view source on GitHub ↗

# Safety assume the buffer is contiguous

(&self)

Source from the content-addressed store, hash-verified

75 /// # Safety
76 /// assume the buffer is contiguous
77 pub unsafe fn contiguous_unchecked(&self) -> BorrowedValue<'_, [u8]> {
78 self.obj_bytes()
79 }
80
81 /// # Safety
82 /// assume the buffer is contiguous and writable

Callers 2

borrow_bufMethod · 0.80
as_contiguousMethod · 0.80

Calls 1

obj_bytesMethod · 0.45

Tested by

no test coverage detected