Lines Matching refs:offset
97 def unpack(self, vdict, cdict, bstring, offset, noerror=False): argument
234 def _unpack1(self, via, bstring, offset, noerror): argument
237 tup = via.unpack_from(bstring, offset)
241 return None, offset + via.size
248 return tup[0], offset + via.size
250 def unpack(self, vdict, cdict, bstring, offset, noerror=False): argument
253 return self._unpack1(self.struct, bstring, offset, noerror)
254 slen, offset = self._unpack1(EncDecSimple.string_len, bstring, offset,
257 return None, offset
258 nexto = offset + slen
266 val = bstring[offset:nexto]
353 def unpack(self, vdict, cdict, bstring, offset, noerror=False): argument
361 offset = self.sequence.unpack_from(obj, cdict, bstring, offset, noerror)
362 return obj, offset
442 def unpack(self, vdict, cdict, bstring, offset, noerror=False): argument
450 nexto = offset + num
454 return bstring[offset:nexto], nexto
457 obj, offset = self.sub.unpack(vdict, cdict, bstring, offset,
460 return array, offset
616 def unpack_from(self, vdict, cdict, bstring, offset=0, noerror=False): argument
636 obj, offset = code.unpack(vdict, cdict, bstring, offset, noerror)
639 return offset
646 offset = self.unpack_from(vdict, cdict, bstring, 0, noerror)
647 if not noerror and offset != len(bstring):
649 len(bstring) - offset))