Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add to_raw_bytes #148

Closed
dinosaure opened this issue Mar 6, 2024 · 2 comments
Closed

Add to_raw_bytes #148

dinosaure opened this issue Mar 6, 2024 · 2 comments

Comments

@dinosaure
Copy link
Member

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.

@hannesm
Copy link
Member

hannesm commented Mar 6, 2024

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

@hannesm
Copy link
Member

hannesm commented Mar 18, 2024

done in #149

@hannesm hannesm closed this as completed Mar 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants