AbstractRegister¶
Interface all CRC registers implement. Implement it if you want to provide your
own register, otherwise use Register or
TableBasedRegister.
Abstract base class / Interface a crc register needs to implement.
Workflow
- The Crc-Register needs to be initialized. 1 time (init)
- Data is feed into the crc register. 1..n times (update)
- Final result is calculated. 1 time (digest)
digest()
abstractmethod
¶
Final crc checksum will be calculated.
Returns:
| Type | Description |
|---|---|
int
|
Final crc result/value (applies pending operations like final xor). |
init()
abstractmethod
¶
Initializes the crc register.