class FixedWidthInteger(Integer):
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. |
Build a new integer type of a fixed size.
| Parameters | size | the size, in bytes, of instance of this integer type |
| signedness | an element of the Signedness enum indicating whether instances of this type are signed | |
| endianness | an element of the Endianness enum indicating the endianness of instances of this type | |
| Raises | ValueError | if the passed size is negative or null |
reven2.types._integer.Integer.size_bytesThe minimal number of bytes necessary to hold an instance of this integer type.
| Parameters | context | The context object. See package documentation. |
| Returns | An integer. | |