hash
The hash library contains various data hash functions
Functions
std::hash::crc8
std::hash::crc8Calculates the CRC8 hash of the bytes inside of a given pattern
pattern: The pattern to calculate the CRC8 hash ofinit: The CRC8 init valuepoly: The CRC8 polynomialxorout: The CRC8 XOR-Out valuereflect_in: Whether or not the input bytes should be reflectedreflect_out: Whether or not the output should be reflectedreturn: Calculated CRC8 hash
fn crc8( pattern, init, poly, xorout, reflect_in, reflect_out);std::hash::crc16
std::hash::crc16Calculates the CRC16 hash of the bytes inside of a given pattern
pattern: The pattern to calculate the CRC16 hash ofinit: The CRC16 init valuepoly: The CRC16 polynomialxorout: The CRC16 XOR-Out valuereflect_in: Whether or not the input bytes should be reflectedreflect_out: Whether or not the output should be reflectedreturn: Calculated CRC16 hash
std::hash::crc32
std::hash::crc32Calculates the CRC32 hash of the bytes inside of a given pattern
pattern: The pattern to calculate the CRC32 hash ofinit: The CRC32 init valuepoly: The CRC32 polynomialxorout: The CRC32 XOR-Out valuereflect_in: Whether or not the input bytes should be reflectedreflect_out: Whether or not the output should be reflectedreturn: Calculated CRC32 hash
std::hash::crc64
std::hash::crc64Calculates the CRC64 hash of the bytes inside of a given pattern
pattern: The pattern to calculate the CRC64 hash ofinit: The CRC64 init valuepoly: The CRC64 polynomialxorout: The CRC64 XOR-Out valuereflect_in: Whether or not the input bytes should be reflectedreflect_out: Whether or not the output should be reflectedreturn: Calculated CRC64 hash
Last updated
Was this helpful?