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

Function Hasher_reset

python/stringzilla.c:5947–5953  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5945}
5946
5947static PyObject *Hasher_reset(PyObject *self_obj, PyObject *noargs) {
5948 sz_unused_(noargs);
5949 Hasher *self = (Hasher *)self_obj;
5950 sz_hash_state_init(&self->state, self->seed);
5951 Py_INCREF(self_obj);
5952 return self_obj;
5953}
5954
5955static PyMethodDef Hasher_methods[] = {
5956 {"update", (PyCFunction)Hasher_update, METH_O, "Update with more data; returns self."},

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…