Home
last modified time | relevance | path

Searched refs:subrange (Results 1 – 1 of 1) sorted by relevance

/openthread-3.6.0/tests/scripts/thread-cert/
Ddtls.py241 def __init__(self, subrange, ele_cls, elements): argument
242 self.subrange = subrange
245 assert self.subrange[0] <= len(self.elements) <= self.subrange[1]
251 …return (isinstance(self, type(other)) and self.subrange == other.subrange and self.ele_cls == othe…
256 return VariableVector._encode_length(len(data), self.subrange) + data
259 def from_bytes(cls, ele_cls, subrange, data): argument
260 length = cls._decode_length(subrange, data)
265 return cls(subrange, ele_cls, elements)
268 def _decode_length(cls, subrange, data): argument
269 length_in_byte = cls._calc_length_in_byte(subrange[1])
[all …]