class documentation
class Field(_ABC):
Known subclasses: reven2.types._struct.Bitfield
, reven2.types._struct.RegularField
Abstract base class for a field inside of a Struct
.
Method | __hash__ |
Returns the hash for this value. |
Method | __init__ |
Initializes an instance of this class from its name and offset in the parent struct. |
Method | __str__ |
Undocumented |
Property | name |
The name of the field. |
Property | offset |
The offset of the field in its parent struct, in bytes. |
Instance Variable | _name |
Undocumented |
Instance Variable | _offset |
Undocumented |
def __init__(self, name, offset):
overridden in
reven2.types._struct.Bitfield
, reven2.types._struct.RegularField
Initializes an instance of this class from its name and offset in the parent struct.
Parameters | |
name:str | Undocumented |
offset:int | Undocumented |
@_abstractmethod
def __str__(self):
def __str__(self):
overridden in
reven2.types._struct.Bitfield
, reven2.types._struct.RegularField
Undocumented
Returns | |
str | Undocumented |