(input []byte)
| 1053 | } |
| 1054 | |
| 1055 | func Crc32cHash(input []byte) uint32 { |
| 1056 | // crc32.MakeTable already ensures singleton table creation, so shouldn't need to cache. |
| 1057 | table := crc32.MakeTable(crc32.Castagnoli) |
| 1058 | return crc32.Checksum(input, table) |
| 1059 | } |
| 1060 | |
| 1061 | // Crc32cHashString returns a zero padded version of a crc32 hash to always be hexadecimal prefixed 8 character string |
| 1062 | func Crc32cHashString(input []byte) string { |
no outgoing calls
no test coverage detected