Skip to content

fix bytestring being serialized as vector of flag enums#403

Merged
liuzicheng1987 merged 2 commits into
getml:mainfrom
Altren:main
Apr 10, 2025
Merged

fix bytestring being serialized as vector of flag enums#403
liuzicheng1987 merged 2 commits into
getml:mainfrom
Altren:main

Conversation

@Altren
Copy link
Copy Markdown
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
@liuzicheng1987
Copy link
Copy Markdown
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