crc_init, go back to CRC module for more information.
crc_init(:crc_algorithm.params()) :: :crc_algorithm.resource()
Resource is created using the same
params types that are used with
- atom's for compiled models
- Map with model values
- Map to extend a compiled model.
If used with
crc/2 the returned resource can be re-used multiple times, but
using a map or atom for a compiled model will likely be slightly more
When using with
crc_update/2 a new resource will be returned with every
call that should be used to continue the calculation.