Lines Matching refs:cls
99 def _validate(cls, data): argument
107 def _parse(cls, data, attr_map): argument
109 return cls(hdr.n_type)
112 def from_bytes(cls, data, attr_map=None): argument
113 cls._validate(data)
114 obj = cls._parse(data, attr_map)
135 def _validate(cls, data): argument
143 def _parse(cls, data, attr_map): argument
145 self = cls(hdr.n_type, data)
166 cls = UnknownTlv
169 cls = obj_descr["ad"].cls
173 obj = cls.from_bytes(obj_data, child_map)
199 def _validate(cls, data): argument
207 def _parse(cls, data, attr_map): argument
210 self = cls(hdr.head.n_type, hdr.idx, hdr.n_set, hdr.n_type, name)
249 def _validate(cls, data): argument
257 def _parse(cls, data, attr_map): argument
259 tlv_list = cls.parse_tlvs(data[sizeof(IpFwObjCTlv) :], attr_map)
262 self = cls(hdr.head.n_type, obj_list=tlv_list)
306 def _validate(cls, data): argument
315 def _parse(cls, data, attr_map): argument
317 self = cls(
357 def _parse(cls, data, attr_map): argument
372 return cls(chdr.head.n_type, obj_list=rule_list)
449 def from_bytes(cls, data): argument
451 hdr, hdrlen = cls.parse_header(data)
452 self = cls(hdr.opcode)
456 cls.print_as_bytes(data)