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

Support serialization operations on big-endian platforms in little-endian format #423

Open
lemire opened this issue Jan 27, 2023 · 1 comment

Comments

@lemire
Copy link
Member

lemire commented Jan 27, 2023

Big-endian platforms are effectively gone. Nevertheless, as a matter of principle, we would like to support them for the IBM mainframe users out there.

Currently, if you are on a big-endian platform, all serialization (IO operations) are big endian, unlike what happens on virtually all other computers (where we serialize in little-endian format).

This means that you can use CRoaring on an IBM s390x mainframe, but the CRoaring file that you produce won't be compatible with the data files from common computers.

@lemire lemire changed the title Support serialization operations on big-endian platforms Support serialization operations on big-endian platforms in little-endian format Jan 29, 2023
@lemire
Copy link
Member Author

lemire commented Jan 29, 2023

It is not a difficult problem, one just needs to flip the bytes around.

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

1 participant