Lines Matching full:decoded
157 decoded = self.raw[offset : offset + m['len']]
161 [ decoded ] = format.unpack_from(self.raw, offset)
164 decoded = self.formatted_string(decoded, m.display_hint)
165 value[m.name] = decoded
507 decoded = attr.as_struct(members)
510 decoded[m.name] = self._decode_enum(decoded[m.name], m)
512 decoded = attr.as_c_array(attr_spec.sub_type)
514 decoded = attr.as_bin()
516 decoded = NlAttr.formatted_string(decoded, attr_spec.display_hint)
517 return decoded
520 decoded = []
527 decoded.append({ item.type: subattrs })
528 return decoded
536 def _rsp_add(self, rsp, name, is_multi, decoded): argument
545 rsp[name] = decoded
547 rsp[name].append(decoded)
549 rsp[name] = [decoded]
569 decoded = {}
572 decoded.update(self._decode_fixed_header(attr, msg_format.fixed_header));
577 decoded.update(subdict)
580 return decoded
598 decoded = subdict
600 decoded = attr.as_strz()
602 decoded = self._decode_binary(attr, attr_spec)
604 decoded = True
606 decoded = attr.as_auto_scalar(attr_spec['type'], attr_spec.byte_order)
608 decoded = attr.as_scalar(attr_spec['type'], attr_spec.byte_order)
610 decoded = self._decode_enum(decoded, attr_spec)
612 decoded = self._decode_array_nest(attr, attr_spec)
618 decoded = {"value": value, "selector": selector}
620 decoded = self._decode_sub_msg(attr, attr_spec, rsp)
624 decoded = self._decode_unknown(attr)
626 self._rsp_add(rsp, attr_spec["name"], attr_spec.is_multi, decoded)
703 def handle_ntf(self, decoded): argument
706 msg['raw'] = decoded
707 op = self.rsp_by_value[decoded.cmd()]
708 attrs = self._decode(decoded.raw_attrs, op.attr_set.name)
710 attrs.update(self._decode_fixed_header(decoded, op.fixed_header))
733 decoded = self.nlproto.decode(self, nl_msg)
734 if decoded.cmd() not in self.async_msg_ids:
735 print("Unexpected msg id done while checking for ntf", decoded)
738 self.handle_ntf(decoded)
798 decoded = self.nlproto.decode(self, nl_msg)
801 if nl_msg.nl_seq != req_seq or decoded.cmd() != op.rsp_value:
802 if decoded.cmd() in self.async_msg_ids:
803 self.handle_ntf(decoded)
806 print('Unexpected message: ' + repr(decoded))
809 rsp_msg = self._decode(decoded.raw_attrs, op.attr_set.name)
811 rsp_msg.update(self._decode_fixed_header(decoded, op.fixed_header))