(
fmt: IntoStructFormatBytes,
buffer: ArgBytesLike,
vm: &VirtualMachine,
)
| 122 | |
| 123 | #[pyfunction] |
| 124 | fn unpack( |
| 125 | fmt: IntoStructFormatBytes, |
| 126 | buffer: ArgBytesLike, |
| 127 | vm: &VirtualMachine, |
| 128 | ) -> PyResult<PyTupleRef> { |
| 129 | let format_spec = fmt.format_spec(vm)?; |
| 130 | buffer.with_ref(|buf| format_spec.unpack(buf, vm)) |
| 131 | } |
| 132 | |
| 133 | #[derive(FromArgs)] |
| 134 | struct UpdateFromArgs { |