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

Function crc32_string

src/expr/src/scalar/func/impls/byte.rs:33–35  ·  view source on GitHub ↗
(a: &'a str)

Source from the content-addressed store, hash-verified

31
32#[sqlfunc(sqlname = "crc32_string")]
33fn crc32_string<'a>(a: &'a str) -> u32 {
34 crc32_bytes(a.as_bytes())
35}
36
37#[sqlfunc(sqlname = "kafka_murmur2_bytes")]
38fn kafka_murmur2_bytes<'a>(a: &'a [u8]) -> i32 {

Callers

nothing calls this directly

Calls 2

crc32_bytesFunction · 0.85
as_bytesMethod · 0.45

Tested by

no test coverage detected