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

Function Sha256_new

python/stringzilla.c:5985–5992  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5983static void Sha256_dealloc(Sha256 *self) { Py_TYPE(self)->tp_free((PyObject *)self); }
5984
5985static PyObject *Sha256_new(PyTypeObject *type, PyObject *args, PyObject *kwds) {
5986 (void)args;
5987 (void)kwds;
5988 Sha256 *self = (Sha256 *)type->tp_alloc(type, 0);
5989 if (!self) return NULL;
5990 sz_sha256_state_init(&self->state);
5991 return (PyObject *)self;
5992}
5993
5994static int Sha256_init(Sha256 *self, PyObject *args, PyObject *kwargs) {
5995 // No arguments expected

Callers 1

Sha256_copyFunction · 0.85

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…