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

Function Sha256_copy

python/stringzilla.c:6047–6054  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6045}
6046
6047static PyObject *Sha256_copy(PyObject *self_obj, PyObject *noargs) {
6048 sz_unused_(noargs);
6049 Sha256 *self = (Sha256 *)self_obj;
6050 Sha256 *copy = (Sha256 *)Sha256_new(&Sha256Type, NULL, NULL);
6051 if (!copy) return NULL;
6052 copy->state = self->state;
6053 return (PyObject *)copy;
6054}
6055
6056static PyMethodDef Sha256_methods[] = {
6057 {"update", (PyCFunction)Sha256_update, METH_O, "Update with more data; returns self."},

Callers

nothing calls this directly

Calls 1

Sha256_newFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…