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

Method unpack_from

crates/stdlib/src/pystruct.rs:291–295  ·  view source on GitHub ↗
(&self, args: UpdateFromArgs, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

289
290 #[pymethod]
291 fn unpack_from(&self, args: UpdateFromArgs, vm: &VirtualMachine) -> PyResult<PyTupleRef> {
292 let offset = get_buffer_offset(args.buffer.len(), args.offset, self.size(), false, vm)?;
293 args.buffer
294 .with_ref(|buf| self.spec.unpack(&buf[offset..][..self.size()], vm))
295 }
296
297 #[pymethod]
298 fn iter_unpack(

Callers 14

__init__Method · 0.80
_read_fmt_chunkMethod · 0.80
calc_chksumsFunction · 0.80
_read_directoryFunction · 0.80
test_unpack_fromMethod · 0.80
verifyMethod · 0.80
__init__Method · 0.80
_get_packing_formatMethod · 0.80
_get_back_transformMethod · 0.80

Calls 5

get_buffer_offsetFunction · 0.85
with_refMethod · 0.80
lenMethod · 0.45
sizeMethod · 0.45
unpackMethod · 0.45