class documentation

class Bitfield(Field):

View In Hierarchy

Undocumented

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, sliced type, offset in bits in the type and length in bits in the type.
Method __ne__ Compares the instance for equality with an object.
Method __str__ Returns the nicely printable string representation of this instance.
Property length The number of bits in this bitfield.
Property position The bit where this bitfield starts.
Property underlying_type The sliced type of this bitfield.
Instance Variable _length Undocumented
Instance Variable _position Undocumented
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 Bitfield, it will never be equal to this instance.
Parameters
o:objectUndocumented
Returns
boolUndocumented
def __init__(self, name, offset, typ, position, length):

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

Parameters
name:strUndocumented
offset:intUndocumented
typ:_TypeUndocumented
position:intUndocumented
length:intUndocumented
def __ne__(self, o):

Compares the instance for equality with an object.

  • if the object is not a Bitfield, 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
length: int =

The number of bits in this bitfield.

@property
position: int =

The bit where this bitfield starts.

@property
underlying_type: _Type =

The sliced type of this bitfield.

_length =

Undocumented

_position =

Undocumented

_typ =

Undocumented