Skip to content

Commit

Permalink
expose crc fn
Browse files Browse the repository at this point in the history
  • Loading branch information
g11tech committed Dec 21, 2024
1 parent 31fb3a1 commit 13fe068
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snappy.zig
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const SnappyError = error{

// Perform the CRC hash per the snappy documentation. We must use wrapping addition since this is
// the default behavior in other languages.
fn crc(b: []const u8) u32 {
pub fn crc(b: []const u8) u32 {
var c = crc32.init();
c.update(b);
const hash = c.final();
Expand Down

0 comments on commit 13fe068

Please sign in to comment.