You're seeing just the function calculate, go back to CRC module for more information.
Link to this function

calculate(input, params)

View Source


calculate(iodata(), :crc_algorithm.params()) :: :crc_algorithm.value()

Calculate a CRC checksum for the input based on the crc params given.

See CRC.crc/2 for details on valid params.

This function has the parameter order reversed to allow easier use with pipelines. allowing code to be written like:


read_data() |> CRC.calculate(:crc_16) |> do_something()