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

Method get_bytes

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

Source from the content-addressed store, hash-verified

947 }
948
949 pub(crate) fn get_bytes(&self) -> PyMappedRwLockReadGuard<'_, [u8]> {
950 PyRwLockReadGuard::map(self.read(), |a| a.get_bytes())
951 }
952
953 pub(crate) fn get_bytes_mut(&self) -> PyMappedRwLockWriteGuard<'_, [u8]> {
954 PyRwLockWriteGuard::map(self.write(), |a| a.get_bytes_mut())

Callers 7

py_newMethod · 0.45
tounicodeMethod · 0.45
tobytesMethod · 0.45
tofileMethod · 0.45
__reduce_ex__Method · 0.45
__reduce__Method · 0.45
array.rsFile · 0.45

Calls 1

readMethod · 0.45

Tested by

no test coverage detected