From 13fe06828d9959b0e33a3539f70b1b6caf7518b7 Mon Sep 17 00:00:00 2001 From: harkamal Date: Sat, 21 Dec 2024 21:17:13 +0530 Subject: [PATCH] expose crc fn --- snappy.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snappy.zig b/snappy.zig index aad3696..f12c6e9 100644 --- a/snappy.zig +++ b/snappy.zig @@ -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();