-
Notifications
You must be signed in to change notification settings - Fork 42
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
Integer value problem #16
Comments
This looks like a serious problem to me. I am hunting for a modern C++ library for serialise/deserialise and came across this one, but this bug would be a showstopper. The code I am working with employs structures where 64 bit unsigned integers take the maximum permitted value to indicate that the value is not there. I know that's horrible, but there's nothing I can do about it. But it is why this bug would need to be fixed before I could use the library. |
The variable length encoding is still totally broken. Just use constexpr auto OPTIONS = options::fixed_length_encoding;
std::vector<uint8_t> bytes;
alpaca::serialize<OPTIONS>(data, bytes); when serializing and deserializing |
I copyed the sample code and just change the value of c to UINT64_MAX, the assert failed.
Is this a problem? My test environment is msvc2022.
I also tested the same code in Ubuntu 20.04.4 LTS and g++ version 9.4.0 , same result.
The text was updated successfully, but these errors were encountered: