MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / crc32_bytes

Function crc32_bytes

src/expr/src/scalar/func/impls/byte.rs:28–30  ·  view source on GitHub ↗
(a: &'a [u8])

Source from the content-addressed store, hash-verified

26
27#[sqlfunc(sqlname = "crc32_bytes")]
28fn crc32_bytes<'a>(a: &'a [u8]) -> u32 {
29 crc32fast::hash(a)
30}
31
32#[sqlfunc(sqlname = "crc32_string")]
33fn crc32_string<'a>(a: &'a str) -> u32 {

Callers 1

crc32_stringFunction · 0.85

Calls 1

hashFunction · 0.50

Tested by

no test coverage detected