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

Function iter_unpack

crates/stdlib/src/pystruct.rs:219–226  ·  view source on GitHub ↗
(
        fmt: IntoStructFormatBytes,
        buffer: ArgBytesLike,
        vm: &VirtualMachine,
    )

Source from the content-addressed store, hash-verified

217
218 #[pyfunction]
219 fn iter_unpack(
220 fmt: IntoStructFormatBytes,
221 buffer: ArgBytesLike,
222 vm: &VirtualMachine,
223 ) -> PyResult<UnpackIterator> {
224 let format_spec = fmt.format_spec(vm)?;
225 UnpackIterator::with_buffer(vm, format_spec, buffer)
226 }
227
228 #[pyfunction]
229 fn calcsize(fmt: IntoStructFormatBytes, vm: &VirtualMachine) -> PyResult<usize> {

Callers

nothing calls this directly

Calls 1

format_specMethod · 0.45

Tested by

no test coverage detected