Lines Matching full:decoded
672 decoded = self._decode_struct(attr.raw, attr_spec.struct_name)
674 decoded = attr.as_c_array(attr_spec.sub_type)
676 decoded = [ self._decode_enum(x, attr_spec) for x in decoded ]
678 decoded = [ self._formatted_string(x, attr_spec.display_hint)
679 for x in decoded ]
681 decoded = attr.as_bin()
683 decoded = self._formatted_string(decoded, attr_spec.display_hint)
684 return decoded
687 decoded = []
695 decoded.append({ item.type: subattrs })
700 decoded.append(subattr)
707 decoded.append(subattr)
710 return decoded
713 decoded = {}
717 decoded[name] = value.type
719 decoded.update(subattrs)
720 return decoded
728 def _rsp_add(self, rsp, name, is_multi, decoded):
737 rsp[name] = decoded
739 rsp[name].append(decoded)
741 rsp[name] = [decoded]
759 decoded = {}
762 decoded.update(self._decode_struct(attr.raw, msg_format.fixed_header))
767 decoded.update(subdict)
770 return decoded
791 decoded = subdict
793 decoded = attr.as_strz()
795 decoded = self._decode_binary(attr, attr_spec)
797 decoded = True
799 decoded = attr.as_auto_scalar(attr_spec['type'], attr_spec.byte_order)
801 decoded = self._decode_enum(decoded, attr_spec)
803 decoded = attr.as_scalar(attr_spec['type'], attr_spec.byte_order)
805 decoded = self._decode_enum(decoded, attr_spec)
807 decoded = self._formatted_string(decoded, attr_spec.display_hint)
809 decoded = self._decode_array_attr(attr, attr_spec)
815 decoded = {"value": value, "selector": selector}
817 decoded = self._decode_sub_msg(attr, attr_spec, search_attrs)
819 decoded = self._decode_nest_type_value(attr, attr_spec)
823 decoded = self._decode_unknown(attr)
825 self._rsp_add(rsp, attr_spec["name"], attr_spec.is_multi, decoded)
984 def handle_ntf(self, decoded):
987 msg['raw'] = decoded
988 op = self.rsp_by_value[decoded.cmd()]
989 attrs = self._decode(decoded.raw_attrs, op.attr_set.name)
991 attrs.update(self._decode_struct(decoded.raw, op.fixed_header))
1015 decoded = self.nlproto.decode(self, nl_msg, None)
1016 if decoded.cmd() not in self.async_msg_ids:
1017 print("Unexpected msg id while checking for ntf", decoded)
1020 self.handle_ntf(decoded)
1117 decoded = self.nlproto.decode(self, nl_msg, op)
1120 if nl_msg.nl_seq not in reqs_by_seq or decoded.cmd() != op.rsp_value:
1121 if decoded.cmd() in self.async_msg_ids:
1122 self.handle_ntf(decoded)
1125 print('Unexpected message: ' + repr(decoded))
1128 rsp_msg = self._decode(decoded.raw_attrs, op.attr_set.name)
1130 rsp_msg.update(self._decode_struct(decoded.raw, op.fixed_header))