reven2.types._integer.Integer(_Type)
class documentationreven2.types._integer
(View In Hierarchy)
Known subclasses: reven2.types._integer.ArchDependentInteger, reven2.types._integer.BigEndian, reven2.types._integer.FixedWidthInteger, reven2.types._integer.LittleEndian
An abstract class whose instances represent the types of integer.
Implementers must specialize the following methods:
Method | endianness | Property: The endianness of this integer type. |
Method | signedness | Property: The signedness of this integer type. |
Method | size_bytes | The minimal number of bytes necessary to hold an instance of this integer type. |
Method | _construct_type | Return the underlying construct instance |
Inherited from Type:
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. |
Property: The endianness of this integer type.
Raises | NotImplemented | If not reimplemented by a subclass. |
Property: The signedness of this integer type.
Raises | NotImplemented | If not reimplemented by a subclass. |
The minimal number of bytes necessary to hold an instance of this integer type.
Parameters | context | The context object. See package documentation. |
Raises | NotImplemented | If not reimplemented by a subclass. |
Return the underlying construct
instance