Home
last modified time | relevance | path

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

/kernel/tests/net/test/
Dcstruct.py169 def __init__(self, tuple_or_bytes=None, **kwargs): argument
177 if tuple_or_bytes and kwargs:
181 if tuple_or_bytes is None:
187 elif isinstance(tuple_or_bytes, str):
189 if len(tuple_or_bytes) < self._length:
191 (self._name, self._length, len(tuple_or_bytes)))
192 self._Parse(tuple_or_bytes)
195 if len(tuple_or_bytes) != len(self._fieldnames):
198 len(tuple_or_bytes)))
199 self._SetValues(tuple_or_bytes)