Lines Matching full:decoded

632             decoded = self._decode_struct(attr.raw, attr_spec.struct_name)
634 decoded = attr.as_c_array(attr_spec.sub_type)
636 decoded = [ self._decode_enum(x, attr_spec) for x in decoded ]
638 decoded = [ self._formatted_string(x, attr_spec.display_hint)
639 for x in decoded ]
641 decoded = attr.as_bin()
643 decoded = self._formatted_string(decoded, attr_spec.display_hint)
644 return decoded
647 decoded = []
655 decoded.append({ item.type: subattrs })
660 decoded.append(subattr)
667 decoded.append(subattr)
670 return decoded
673 decoded = {}
677 decoded[name] = value.type
679 decoded.update(subattrs)
680 return decoded
688 def _rsp_add(self, rsp, name, is_multi, decoded): argument
697 rsp[name] = decoded
699 rsp[name].append(decoded)
701 rsp[name] = [decoded]
719 decoded = {}
722 decoded.update(self._decode_struct(attr.raw, msg_format.fixed_header));
727 decoded.update(subdict)
730 return decoded
751 decoded = subdict
753 decoded = attr.as_strz()
755 decoded = self._decode_binary(attr, attr_spec)
757 decoded = True
759 decoded = attr.as_auto_scalar(attr_spec['type'], attr_spec.byte_order)
761 decoded = attr.as_scalar(attr_spec['type'], attr_spec.byte_order)
763 decoded = self._decode_enum(decoded, attr_spec)
765 decoded = self._formatted_string(decoded, attr_spec.display_hint)
767 decoded = self._decode_array_attr(attr, attr_spec)
773 decoded = {"value": value, "selector": selector}
775 decoded = self._decode_sub_msg(attr, attr_spec, search_attrs)
777 decoded = self._decode_nest_type_value(attr, attr_spec)
781 decoded = self._decode_unknown(attr)
783 self._rsp_add(rsp, attr_spec["name"], attr_spec.is_multi, decoded)
926 def handle_ntf(self, decoded): argument
929 msg['raw'] = decoded
930 op = self.rsp_by_value[decoded.cmd()]
931 attrs = self._decode(decoded.raw_attrs, op.attr_set.name)
933 attrs.update(self._decode_struct(decoded.raw, op.fixed_header))
957 decoded = self.nlproto.decode(self, nl_msg, None)
958 if decoded.cmd() not in self.async_msg_ids:
959 print("Unexpected msg id while checking for ntf", decoded)
962 self.handle_ntf(decoded)
1058 decoded = self.nlproto.decode(self, nl_msg, op)
1061 if nl_msg.nl_seq not in reqs_by_seq or decoded.cmd() != op.rsp_value:
1062 if decoded.cmd() in self.async_msg_ids:
1063 self.handle_ntf(decoded)
1066 print('Unexpected message: ' + repr(decoded))
1069 rsp_msg = self._decode(decoded.raw_attrs, op.attr_set.name)
1071 rsp_msg.update(self._decode_struct(decoded.raw, op.fixed_header))