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

Method buffer_info

crates/stdlib/src/array.rs:744–747  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

742
743 #[pymethod]
744 fn buffer_info(&self) -> (usize, usize) {
745 let array = self.read();
746 (array.addr(), array.len())
747 }
748
749 #[pymethod]
750 fn count(&self, x: PyObjectRef, vm: &VirtualMachine) -> usize {

Callers 6

test_buffer_infoMethod · 0.80
test_int_from_addressMethod · 0.80
test_from_addressMethod · 0.80

Calls 3

readMethod · 0.45
addrMethod · 0.45
lenMethod · 0.45

Tested by 6

test_buffer_infoMethod · 0.64
test_int_from_addressMethod · 0.64
test_from_addressMethod · 0.64