hash
The hash library contains various data hash functions
Functions
std::hash::crc8
std::hash::crc8
Calculates 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
std::hash::crc16
std::hash::crc16
Calculates 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::crc32
Calculates 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::crc64
Calculates 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