-
Notifications
You must be signed in to change notification settings - Fork 13
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
Make bitser endian safe #36
Comments
Currently, the only place where this is directly relevant is when we're serializing numbers (except integers in the range [-27, 100], those are fine), but many other types involve serializing numbers, so this also breaks for:
|
This would be nice, so that the library ffi wasn't necessary. Specially because I want to run it with vanilla lua instead of love/luajit. |
Unfortunately, @masakk1, bitser is built from the ground up to rely on the |
I see. But if |
Actually, forget I said anything, not only did I mix up both this issue, but I actually use love.timer.getTime() so I need to use love2d anyways. Nevermind! |
Currently, bitser implicitly expects data to be deserialized on a computer with the same endianness as the computer that data was serialized on. If that is not the case, bitser is likely to either silently give you the wrong data or give confusing error messages.
Here's the potential solutions I can see to that:
The text was updated successfully, but these errors were encountered: