-
Notifications
You must be signed in to change notification settings - Fork 220
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
std::to_bytes should specify the endian #651
Comments
@Ethan-000 For this, I think just changing the stdlib function would be a first step and low hanging fruit because then we stop new projects from needing to refactor their code. Noting that there is an endian already in place -- its just that to_bytes is not explicitly specifying it |
@jfecher wait sir the pr does not fully resolves this issue, we still need a change of acvm to add |
Indeed, the issue was automatically closed when the PR was merged. I'll re-open it. |
oh I probably shouldn't mark it as |
After thinking it over some, I'm going to re-resolve this issue as the central issue of specifying endian-ness has been solved. Creating a separate to_be_bytes was optional and we can revisit it at a later time if we determine it is needed. |
Problem
It's not clear what the endian is of
std::to_bytes
Solution
Change it to
std::to_le_bytes
and or optionally addstd:to_be_bytes
Alternatives considered
Its possible to just add a comment, but then it becomes cumbersome if we ever add a big_endian flavour, because you will have
to_bytes
andto_be_bytes
Additional context
The text was updated successfully, but these errors were encountered: