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

Function hasherReset

javascript/lib.c:416–425  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

414}
415
416napi_value hasherReset(napi_env env, napi_callback_info info) {
417 napi_value js_this;
418 napi_get_cb_info(env, info, NULL, NULL, &js_this, NULL);
419
420 hasher_t *hasher;
421 napi_unwrap(env, js_this, (void **)&hasher);
422
423 sz_hash_state_init(&hasher->state, hasher->seed);
424 return js_this;
425}
426
427napi_value sha256API(napi_env env, napi_callback_info info) {
428 size_t argc = 1;

Callers

nothing calls this directly

Calls 1

sz_hash_state_initFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…