Home
last modified time | relevance | path

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

/kernel/tests/net/test/
Dcstruct.py172 def __init__(self, tuple_or_bytes=None, **kwargs): argument
180 if tuple_or_bytes and kwargs:
184 if tuple_or_bytes is None:
190 elif isinstance(tuple_or_bytes, str):
192 if len(tuple_or_bytes) < self._length:
194 (self._name, self._length, len(tuple_or_bytes)))
195 self._Parse(tuple_or_bytes)
198 if len(tuple_or_bytes) != len(self._fieldnames):
201 len(tuple_or_bytes)))
202 self._SetValues(tuple_or_bytes)