MCPcopy Create free account
hub / github.com/ashvardanian/StringZilla / streaming_hash

Function streaming_hash

rust/stringzilla.rs:3455–3465  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3453
3454 #[test]
3455 fn streaming_hash() {
3456 let mut hasher = sz::Hasher::new(123);
3457 hasher.write(b"Hello, ");
3458 hasher.write(b"world!");
3459 let streamed = hasher.finish();
3460
3461 let mut hasher = sz::Hasher::new(123);
3462 hasher.write(b"Hello, world!");
3463 let expected = hasher.finish();
3464 assert_eq!(streamed, expected);
3465 }
3466
3467 #[test]
3468 fn hashmap_with_sz() {

Callers

nothing calls this directly

Calls 2

writeMethod · 0.80
finishMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…