Skip to content
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

(De)Serialize enums with type size specifiers. Update protocol with bug fixes. #18

Merged
merged 2 commits into from
Jun 17, 2024

Conversation

ethanmoffat
Copy link
Owner

@ethanmoffat ethanmoffat commented Jun 17, 2024

Type size specifiers were being ignored for enums (e.g. Gender:short) so serialize/deserialize calls were producing incorrect data.

eo-protocol has also been updated with a number of fixes.

Ensure that enum members use a type size override if it is specified. Fixes bug where some fields were serialized/deserialized with the incorrect size, which could later cause an off-by-one error that returned incorrect data in packet objects.
@ethanmoffat ethanmoffat merged commit 1e86159 into master Jun 17, 2024
1 check passed
@ethanmoffat ethanmoffat deleted the fix_serialize_type branch June 17, 2024 16:42
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.

1 participant