Lines Matching full:decoded
627 decoded = self._decode_struct(attr.raw, attr_spec.struct_name)
629 decoded = attr.as_c_array(attr_spec.sub_type)
631 decoded = attr.as_bin()
633 decoded = self._formatted_string(decoded, attr_spec.display_hint)
634 return decoded
637 decoded = []
645 decoded.append({ item.type: subattrs })
650 decoded.append(subattrs)
655 decoded.append(subattrs)
658 return decoded
661 decoded = {}
665 decoded[name] = value.type
667 decoded.update(subattrs)
668 return decoded
676 def _rsp_add(self, rsp, name, is_multi, decoded): argument
685 rsp[name] = decoded
687 rsp[name].append(decoded)
689 rsp[name] = [decoded]
707 decoded = {}
710 decoded.update(self._decode_struct(attr.raw, msg_format.fixed_header));
715 decoded.update(subdict)
718 return decoded
739 decoded = subdict
741 decoded = attr.as_strz()
743 decoded = self._decode_binary(attr, attr_spec)
745 decoded = True
747 decoded = attr.as_auto_scalar(attr_spec['type'], attr_spec.byte_order)
749 decoded = attr.as_scalar(attr_spec['type'], attr_spec.byte_order)
751 decoded = self._decode_enum(decoded, attr_spec)
753 decoded = self._formatted_string(decoded, attr_spec.display_hint)
755 decoded = self._decode_array_attr(attr, attr_spec)
761 decoded = {"value": value, "selector": selector}
763 decoded = self._decode_sub_msg(attr, attr_spec, search_attrs)
765 decoded = self._decode_nest_type_value(attr, attr_spec)
769 decoded = self._decode_unknown(attr)
771 self._rsp_add(rsp, attr_spec["name"], attr_spec.is_multi, decoded)
902 def handle_ntf(self, decoded): argument
905 msg['raw'] = decoded
906 op = self.rsp_by_value[decoded.cmd()]
907 attrs = self._decode(decoded.raw_attrs, op.attr_set.name)
909 attrs.update(self._decode_struct(decoded.raw, op.fixed_header))
933 decoded = self.nlproto.decode(self, nl_msg, None)
934 if decoded.cmd() not in self.async_msg_ids:
935 print("Unexpected msg id while checking for ntf", decoded)
938 self.handle_ntf(decoded)
1034 decoded = self.nlproto.decode(self, nl_msg, op)
1037 if nl_msg.nl_seq not in reqs_by_seq or decoded.cmd() != op.rsp_value:
1038 if decoded.cmd() in self.async_msg_ids:
1039 self.handle_ntf(decoded)
1042 print('Unexpected message: ' + repr(decoded))
1045 rsp_msg = self._decode(decoded.raw_attrs, op.attr_set.name)
1047 rsp_msg.update(self._decode_struct(decoded.raw, op.fixed_header))