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

Function sha256HasherConstructor

javascript/lib.c:461–470  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

459} sha256_hasher_t;
460
461napi_value sha256HasherConstructor(napi_env env, napi_callback_info info) {
462 napi_value js_this;
463 napi_get_cb_info(env, info, NULL, NULL, &js_this, NULL);
464
465 sha256_hasher_t *hasher = malloc(sizeof(sha256_hasher_t));
466 sz_sha256_state_init(&hasher->state);
467 napi_wrap(env, js_this, hasher, sha256_hasher_cleanup, NULL, NULL);
468
469 return js_this;
470}
471
472napi_value sha256HasherUpdate(napi_env env, napi_callback_info info) {
473 size_t argc = 1;

Callers

nothing calls this directly

Calls 1

sz_sha256_state_initFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…