class documentation

class RegularField(Field):

View In Hierarchy

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:objectUndocumented
Returns
boolUndocumented
def __init__(self, name, offset, typ):

Initializes an instance of this class from its name, offset in the parent struct, and type.

Parameters
name:strUndocumented
offset:intUndocumented
typ:_TypeUndocumented
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:objectUndocumented
Returns
boolUndocumented
def __str__(self):

Returns the nicely printable string representation of this instance.

Returns
strUndocumented
@property
type: _Type =

The type of the field.

_typ =

Undocumented