class documentation
class RegularField(Field):
A field that is not a bitfield.
Method | __eq__ |
Compares the instance for equality with an object. |
Method | __init__ |
Initializes an instance of this class from its name, offset in the parent struct, and type. |
Method | __ne__ |
Compares the instance for equality with an object. |
Method | __str__ |
Returns the nicely printable string representation of this instance. |
Property | type |
The type of the field. |
Instance Variable | _typ |
Undocumented |
Inherited from Field
:
Method | __hash__ |
Returns the hash for this value. |
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 __eq__(self, o):
Compares the instance for equality with an object.
- if the object is not a
RegularField
, it will never be equal to this instance.
Parameters | |
o:object | Undocumented |
Returns | |
bool | Undocumented |
def __init__(self, name, offset, typ):
overrides
reven2.types._struct.Field.__init__
Initializes an instance of this class from its name, offset in the parent struct, and type.
Parameters | |
name:str | Undocumented |
offset:int | Undocumented |
typ:_Type | Undocumented |
def __ne__(self, o):
Compares the instance for equality with an object.
- if the object is not a
RegularField
, it will never be equal to this instance.
Parameters | |
o:object | Undocumented |
Returns | |
bool | Undocumented |
def __str__(self):
overrides
reven2.types._struct.Field.__str__
Returns the nicely printable string representation of this instance.
Returns | |
str | Undocumented |