class documentation

class FixedWidthInteger(Integer):

View In Hierarchy

An integer type of a fixed size.

Method __init__ Build a new integer type of a fixed size.
Method size_bytes The minimal number of bytes necessary to hold an instance of this integer type.
Property endianness Property: The endianness of this integer type.
Property signedness Property: The signedness of this integer type.
Instance Variable _size Undocumented
Instance Variable _signedness Undocumented
Instance Variable _endianness Undocumented

Inherited from Integer:

Method _construct_type Return the underlying construct instance

Inherited from Type (via Integer):

Method parse Parses the value of an instance of this type from a raw buffer, possibly depending on the context.
Method is_context_sensitive Whether the context argument needed by some methods actually has an effect.
def __init__(self, size, signedness, endianness):

Build a new integer type of a fixed size.

Information

Parameterssizethe size, in bytes, of instance of this integer type
signednessan element of the Signedness enum indicating whether instances of this type are signed
endiannessan element of the Endianness enum indicating the endianness of instances of this type
RaisesValueErrorif the passed size is negative or null
_size =

Undocumented

_signedness =

Undocumented

_endianness =

Undocumented

def size_bytes(self, context=None):

The minimal number of bytes necessary to hold an instance of this integer type.

Information

ParameterscontextThe context object. See package documentation.
ReturnsAn integer.
@property
endianness =

Property: The endianness of this integer type.

Information

ReturnsAn Endianness instance.
@property
signedness =

Property: The signedness of this integer type.

Information

ReturnsAn Signedness instance.
API Documentation for reven2, generated by pydoctor 21.2.2 at 2021-04-06 08:01:12.