Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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"
)]
28
fn crc32_bytes<
'a>(a: &'
a [u8]) -> u32 {
29
crc32fast::hash(a)
30
}
31
32
#[sqlfunc(sqlname =
"crc32_string"
)]
33
fn crc32_string<
'a>(a: &'
a str) -> u32 {
Callers
1
crc32_string
Function · 0.85
Calls
1
hash
Function · 0.50
Tested by
no test coverage detected