Lines Matching full:decoded
624 decoded = self._decode_struct(attr.raw, attr_spec.struct_name)
626 decoded = attr.as_c_array(attr_spec.sub_type)
628 decoded = attr.as_bin()
630 decoded = self._formatted_string(decoded, attr_spec.display_hint)
631 return decoded
634 decoded = []
642 decoded.append({ item.type: subattrs })
647 decoded.append(subattrs)
652 decoded.append(subattrs)
655 return decoded
658 decoded = {}
662 decoded[name] = value.type
664 decoded.update(subattrs)
665 return decoded
673 def _rsp_add(self, rsp, name, is_multi, decoded): argument
682 rsp[name] = decoded
684 rsp[name].append(decoded)
686 rsp[name] = [decoded]
704 decoded = {}
707 decoded.update(self._decode_struct(attr.raw, msg_format.fixed_header));
712 decoded.update(subdict)
715 return decoded
735 decoded = subdict
737 decoded = attr.as_strz()
739 decoded = self._decode_binary(attr, attr_spec)
741 decoded = True
743 decoded = attr.as_auto_scalar(attr_spec['type'], attr_spec.byte_order)
745 decoded = attr.as_scalar(attr_spec['type'], attr_spec.byte_order)
747 decoded = self._decode_enum(decoded, attr_spec)
749 decoded = self._formatted_string(decoded, attr_spec.display_hint)
751 decoded = self._decode_array_attr(attr, attr_spec)
757 decoded = {"value": value, "selector": selector}
759 decoded = self._decode_sub_msg(attr, attr_spec, search_attrs)
761 decoded = self._decode_nest_type_value(attr, attr_spec)
765 decoded = self._decode_unknown(attr)
767 self._rsp_add(rsp, attr_spec["name"], attr_spec.is_multi, decoded)
895 def handle_ntf(self, decoded): argument
898 msg['raw'] = decoded
899 op = self.rsp_by_value[decoded.cmd()]
900 attrs = self._decode(decoded.raw_attrs, op.attr_set.name)
902 attrs.update(self._decode_struct(decoded.raw, op.fixed_header))
926 decoded = self.nlproto.decode(self, nl_msg, None)
927 if decoded.cmd() not in self.async_msg_ids:
928 print("Unexpected msg id done while checking for ntf", decoded)
931 self.handle_ntf(decoded)
1008 decoded = self.nlproto.decode(self, nl_msg, op)
1011 if nl_msg.nl_seq not in reqs_by_seq or decoded.cmd() != op.rsp_value:
1012 if decoded.cmd() in self.async_msg_ids:
1013 self.handle_ntf(decoded)
1016 print('Unexpected message: ' + repr(decoded))
1019 rsp_msg = self._decode(decoded.raw_attrs, op.attr_set.name)
1021 rsp_msg.update(self._decode_struct(decoded.raw, op.fixed_header))