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

Function write_object

crates/vm/src/stdlib/marshal.rs:155–170  ·  view source on GitHub ↗
(
        buf: &mut Vec<u8>,
        obj: &PyObjectRef,
        refs: &mut Option<WriterRefTable>,
        version: i32,
        vm: &VirtualMachine,
    )

Source from the content-addressed store, hash-verified

153 }
154
155 fn write_object(
156 buf: &mut Vec<u8>,
157 obj: &PyObjectRef,
158 refs: &mut Option<WriterRefTable>,
159 version: i32,
160 vm: &VirtualMachine,
161 ) -> PyResult<()> {
162 write_object_depth(
163 buf,
164 obj,
165 refs,
166 version,
167 vm,
168 marshal::MAX_MARSHAL_STACK_DEPTH,
169 )
170 }
171
172 fn write_object_depth(
173 buf: &mut Vec<u8>,

Callers 1

dumpsFunction · 0.85

Calls 1

write_object_depthFunction · 0.85

Tested by

no test coverage detected