Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ tobytes
Method
tobytes
crates/stdlib/src/array.rs:927–929 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
925
926
#[pymethod]
927
pub(crate) fn tobytes(&self) -> Vec<u8> {
928
self.read().get_bytes().to_vec()
929
}
930
931
#[pymethod]
932
fn tofile(&self, f: PyObjectRef, vm: &VirtualMachine) -> PyResult<()> {
Callers
15
_bytes_from_decode_data
Function · 0.45
_b32encode
Function · 0.45
_85encode
Function · 0.45
save_picklebuffer
Method · 0.45
_test_pack_into
Method · 0.45
test_communicate_memoryview_input_nonbyte
Method · 0.45
testRecvmsgIntoArray
Method · 0.45
_testFDPassSimple
Method · 0.45
_testFDPassPartialInt
Method · 0.45
_testFDPassPartialIntInMiddle
Method · 0.45
_testOddCmsgSize
Method · 0.45
testRecvIntoArray
Method · 0.45
Calls
3
to_vec
Method · 0.80
get_bytes
Method · 0.45
read
Method · 0.45
Tested by
15
_test_pack_into
Method · 0.36
test_communicate_memoryview_input_nonbyte
Method · 0.36
testRecvmsgIntoArray
Method · 0.36
_testFDPassSimple
Method · 0.36
_testFDPassPartialInt
Method · 0.36
_testFDPassPartialIntInMiddle
Method · 0.36
_testOddCmsgSize
Method · 0.36
testRecvIntoArray
Method · 0.36
testRecvFromIntoArray
Method · 0.36
check_memoryview
Method · 0.36
test_readinto
Method · 0.36
test_tofrombytes
Method · 0.36