CRC-32: Difference between revisions
Content added Content deleted
(add RPL) |
No edit summary |
||
Line 3,066: | Line 3,066: | ||
ZLib.calcCRC32(Data(Void,"The quick brown fox jumps over the lazy dog")); |
ZLib.calcCRC32(Data(Void,"The quick brown fox jumps over the lazy dog")); |
||
//-->0x414fa339</syntaxhighlight> |
//-->0x414fa339</syntaxhighlight> |
||
=={{header|Zig}}== |
|||
<syntaxhighlight lang="zig">const std = @import("std"); |
|||
const Crc32Ieee = std.hash.Crc32; |
|||
pub fn main() !void { |
|||
var res: u32 = Crc32Ieee.hash("The quick brown fox jumps over the lazy dog"); |
|||
std.debug.print("{x}\n", .{res}); |
|||
} |
|||
</syntaxhighlight> |
|||
{{out}} |
|||
<pre> |
|||
414fa339 |
|||
</pre> |