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

How can I add raw bytes, or non-null terminated strings? #56

Open
etale-cohomology opened this issue Jan 3, 2023 · 1 comment
Open

Comments

@etale-cohomology
Copy link

etale-cohomology commented Jan 3, 2023

Something like:

bf.add(64,buf);

where buf is something like char*, and 64 is the number of bytes pointed to by buf.

@etale-cohomology etale-cohomology changed the title How can I hash raw bytes, or non-null terminated strings? How can I add raw bytes, or non-null terminated strings? Jan 3, 2023
@mavam
Copy link
Owner

mavam commented Jan 3, 2023

Unfortunately the library only supports a std::vector<T> where T is an integral type as input.

If I would have the time to maintain libbf, I would make the interface to take a std::span<const std::byte>. That wasn't available at the time I wrote the first version.

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