| 5917 | } |
| 5918 | |
| 5919 | static PyObject *Hasher_update(PyObject *self_obj, PyObject *arg) { |
| 5920 | Hasher *self = (Hasher *)self_obj; |
| 5921 | sz_string_view_t text; |
| 5922 | if (!sz_py_export_string_like(arg, &text.start, &text.length)) { |
| 5923 | wrap_current_exception("Argument must be string-like"); |
| 5924 | return NULL; |
| 5925 | } |
| 5926 | sz_hash_state_update(&self->state, text.start, text.length); |
| 5927 | Py_INCREF(self_obj); |
| 5928 | return self_obj; |
| 5929 | } |
| 5930 | |
| 5931 | static PyObject *Hasher_digest(PyObject *self_obj, PyObject *noargs) { |
| 5932 | sz_unused_(noargs); |
nothing calls this directly
no test coverage detected
searching dependent graphs…