class Integer(_Type):
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:
| Property | endianness |
Property: The endianness of this integer type. |
| Property | 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 | to_bytes |
Build a byte buffer from a value of this type. |
| Method | is_context_sensitive |
Whether the context argument needed by some methods actually has an effect. |
reven2.types._integer.ArchDependentInteger, reven2.types._integer.BigEndian, reven2.types._integer.FixedWidthInteger, reven2.types._integer.LittleEndianProperty: The endianness of this integer type.
| Raises | NotImplementedError | If not reimplemented by a subclass. |
reven2.types._integer.ArchDependentInteger, reven2.types._integer.BigEndian, reven2.types._integer.FixedWidthInteger, reven2.types._integer.LittleEndianProperty: The signedness of this integer type.
| Raises | NotImplementedError | If not reimplemented by a subclass. |
reven2.types._type.Type.size_bytesreven2.types._integer.ArchDependentInteger, reven2.types._integer.BigEndian, reven2.types._integer.FixedWidthInteger, reven2.types._integer.LittleEndianThe minimal number of bytes necessary to hold an instance of this integer type.
| Parameters | context | The context object. See package documentation. |
| Raises | NotImplementedError | If not reimplemented by a subclass. |
reven2.types._type.Type._construct_typeReturn the underlying construct instance