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 endian conversions for scalar types #12

Open
bnert opened this issue Sep 7, 2020 · 2 comments
Open

Add endian conversions for scalar types #12

bnert opened this issue Sep 7, 2020 · 2 comments

Comments

@bnert
Copy link

bnert commented Sep 7, 2020

Based off this comment for PR: cycfi/artist#2 (comment)

Add functions to include/support.hpp:

  • to_little_endian
  • to_big_endian

for various scalar types (e.g. uint16_t, uint32_t, etc...).

@djowel
Copy link
Member

djowel commented Sep 8, 2020

Should be easy :-) Care for a PR? Some ideas here: https://github.com/boostorg/endian/blob/develop/include/boost/endian/detail/endian_reverse.hpp

Probably deserves to be a file on its own.

@bnert
Copy link
Author

bnert commented Sep 8, 2020

Sure! I'll most likely have some spare time this week to get something up.

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