Maintainers
Pricing
Enterprise
More
More
Documentation
Try Live
Rankings
Install
Blog
Docs7
Ask
New
Add Docs
crc32fast
https://github.com/srijs/rust-crc32fast
Admin
Tokens:
581
Snippets:
8
Trust Score:
7.3
License:
Apache-2.0
Update:
6 months ago
Context
Chat
Benchmark
Latest
Show doc for...
Code
Info
Show Results
Tokens:
Raw
Copy
Link
Tokens:
Raw
Copy
Link
### Compute CRC32 Checksum - Rust Source: https://github.com/srijs/rust-crc32fast/blob/master/README.md Computes the CRC32 checksum for a given byte slice using the convenience `hash` function. This is a simple way to get a checksum without managing a hasher instance. ```rust let checksum = crc32fast::hash(b"foo bar baz"); ``` -------------------------------- ### Advanced CRC32 Hashing - Rust Source: https://github.com/srijs/rust-crc32fast/blob/master/README.md Demonstrates advanced CRC32 hashing using the `Hasher` struct for more flexibility and performance, especially with large data. It involves creating a hasher, updating it with data, and finalizing to get the checksum. ```rust use crc32fast::Hasher; let mut hasher = Hasher::new(); hasher.update(b"foo bar baz"); let checksum = hasher.finalize(); ```