You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In some context, it can be useful to get the hash as a bytes instead of a string. It's an outcome of digestif, so the user is responsible about this bytes. It permits to not use Bytes.unsafe_to_string in this context.
The text was updated successfully, but these errors were encountered:
Also, add a into_raw_bytes (or a similar name), something that has: val encode_into : t -> bytes * int -> unit where nothing is allocated, but the hash value is written into the buffer passed into (at the specified offset) //cc @reynir
In some context, it can be useful to get the hash as a
bytes
instead of a string. It's an outcome ofdigestif
, so the user is responsible about thisbytes
. It permits to not useBytes.unsafe_to_string
in this context.The text was updated successfully, but these errors were encountered: