Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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_info
Method · 0.80
test_sizeof_with_buffer
Method · 0.80
test_int_from_address
Method · 0.80
test_float_from_address
Method · 0.80
test_char_from_address
Method · 0.80
test_from_address
Method · 0.80
Calls
3
read
Method · 0.45
addr
Method · 0.45
len
Method · 0.45
Tested by
6
test_buffer_info
Method · 0.64
test_sizeof_with_buffer
Method · 0.64
test_int_from_address
Method · 0.64
test_float_from_address
Method · 0.64
test_char_from_address
Method · 0.64
test_from_address
Method · 0.64