Lines Matching full:off
142 off = 0
144 while off < len(data):
146 if off + i < len(data):
147 print(" {:02X}".format(data[off + i]), end="")
149 off += step
203 off = 0
204 while len(data) - off >= 4:
205 nla_len, raw_nla_type = struct.unpack("@HH", data[off : off + 4])
206 if nla_len + off > len(data):
209 nla_len, len(data) - off
213 val = self.parse_child(data[off + 4 : off + nla_len], nla_type, attr_map)
215 off += align4(nla_len)
220 off = 0
221 while len(data) - off >= 4:
222 nla_len, raw_nla_type = struct.unpack("@HH", data[off : off + 4])
223 if nla_len + off > len(data):
226 nla_len, len(data) - off
232 val = v["ad"].cls.from_bytes(data[off : off + nla_len], v["ad"].val)
235 child_data = data[off + 4 : off + nla_len]
245 val = NlAttr(raw_nla_type, data[off + 4 : off + nla_len])
247 off += align4(nla_len)
248 return ret, off