You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is the value returned by raw_value() the same across all platforms for a given fixed point value?
That's for serialization and sending into network and ensure portability.
I assume yes but just to be sure.
The text was updated successfully, but these errors were encountered:
Eren121
changed the title
Serialization ?
Is raw_value portable?
Apr 22, 2022
Eren121
changed the title
Is raw_value portable?
[question] Is raw_value portable?
Apr 22, 2022
Hi @Eren121, it is the same in practice, but to be fair, FPM makes no guarantee for this. You could use raw_value() for now, but "officially" supporting platform-stable (and backwards-compatible) serialization would be a good feature request.
Thanks for your answer.
So I turn this into a feature request : making fpm::fixed serialization-friendly ^^
If it is with raw_value() or another method to ensure raw_value() backward-compatibility, that's not important.
Currently it could be implemented surely by serializing a char array (e.g. "1.4672") but, that seems a waste of memory space, therefore of performance.
MikeLankamp
changed the title
Is raw_value portable?
Provide a way to serialize fpm::fixed
Apr 22, 2022
Is the value returned by
raw_value()
the same across all platforms for a given fixed point value?That's for serialization and sending into network and ensure portability.
I assume yes but just to be sure.
The text was updated successfully, but these errors were encountered: