Skip to content

fix bytestring being serialized as vector of flag enums #403

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

Merged
merged 2 commits into from
Apr 10, 2025

Conversation

Altren
Copy link
Contributor

@Altren Altren commented Apr 9, 2025

This is a fix for the regression introduced with the Bytestring std::vector replacement.
It was serialized as a vector of enums instead of binary data.
I haven't found a cleaner way other than making a fake type to avoid it being treated as std::vector<T>.
Also, I can make write_and_read return serialized size, so that such regression can be caught by the test_bytestring and explicit size check in it

@liuzicheng1987 liuzicheng1987 merged commit 15742a8 into getml:main Apr 10, 2025
11 checks passed
@liuzicheng1987
Copy link
Contributor

@Altren , thank you for your contribution!

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

Successfully merging this pull request may close these issues.

2 participants