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

Function hasherDigest

javascript/lib.c:402–414  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

400}
401
402napi_value hasherDigest(napi_env env, napi_callback_info info) {
403 napi_value js_this;
404 napi_get_cb_info(env, info, NULL, NULL, &js_this, NULL);
405
406 hasher_t *hasher;
407 napi_unwrap(env, js_this, (void **)&hasher);
408
409 sz_u64_t hash = sz_hash_state_digest(&hasher->state);
410 napi_value js_result;
411 napi_create_bigint_uint64(env, hash, &js_result);
412
413 return js_result;
414}
415
416napi_value hasherReset(napi_env env, napi_callback_info info) {
417 napi_value js_this;

Callers

nothing calls this directly

Calls 1

sz_hash_state_digestFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…