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.
Method endianness Property: The endianness of this integer type.
Method signedness Property: The signedness of this integer type.

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.

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
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
def endianness(self):

Property: The endianness of this integer type.

Information

ReturnsAn Endianness instance.
@property
def signedness(self):

Property: The signedness of this integer type.

Information

ReturnsAn Signedness instance.
API Documentation for reven2, generated by pydoctor at 2019-11-13 18:38:15.