Closed kozross closed 2 years ago
It returns -1
on error, 0
on success.
An error will happen if the returned size is not between hydro_hash_BYTES_MIN
and hydro_hash_BYTES_MAX
.
Thanks! What about all the other int
-returning functions dealing with generic hashing? Is it the same kind of idea?
0
means that everything's fine and -1
that something went wrong :) Same convention everywhere, just like the C standard library.
Based on the documentation here,
hydro_hash_hash
returns anint
. However, it is not specified what thisint
will be, and under what conditions. Is this specified somewhere?