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

Method buffer

crates/vm/src/stdlib/_io.rs:3819–3821  ·  view source on GitHub ↗
(&self, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

3817
3818 #[pygetset]
3819 fn buffer(&self, vm: &VirtualMachine) -> PyResult {
3820 Ok(self.lock(vm)?.buffer.clone())
3821 }
3822
3823 #[pymethod]
3824 fn __getstate__(zelf: PyObjectRef, vm: &VirtualMachine) -> PyResult {

Callers 10

js_to_pyFunction · 0.45
writeMethod · 0.45
getvalueMethod · 0.45
seekMethod · 0.45
readMethod · 0.45
tellMethod · 0.45
readlineMethod · 0.45
truncateMethod · 0.45
__getstate__Method · 0.45
readintoMethod · 0.45

Calls 6

io_closed_errorFunction · 0.85
ErrClass · 0.50
cloneMethod · 0.45
lockMethod · 0.45
loadMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected