Struct¶
-
class
pystructs.fields.
Struct
(_bytes: bytes = b'', auto_initialization=True)[source]¶ struct implementations that inherit BytesField
link fields and calculate offset and variable values automatically
-
fields
= {}¶ Reflection of fields from struct
-
initialize
(root: Optional[Struct] = None)[source]¶ link fields and set parent, initialize each fields
Parameters: root – Struct object of root Returns:
-
is_root
¶ bool value about this field is root
Type: bool
-
offset
¶ offset of this
Type: int
-
size
¶ size of this
Type: int
-