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

Consider to support more overloads for serialization and deserialization #64

Open
mikir opened this issue Dec 17, 2024 · 0 comments
Open
Milestone

Comments

@mikir
Copy link
Collaborator

mikir commented Dec 17, 2024

Currently, the serialize and deserialize functions works only with zserio::BitBuffer abstraction. This might be inconvinient for users who work for example with STL vectors. Example:

zserio::deserialize(zserio::BitBuffer(zserio::Span(myBlob.Data(), myBlob.Size())), spatialExtentResult);

Don't forget that each bit matters in Zserio and deserialization should always know exact number of bits. If not, then deserialization might possible read the rest bits in the last byte which does not belong to the stream.

Reported by @reinco.

@mikir mikir added this to the Backlog milestone Dec 17, 2024
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

No branches or pull requests

1 participant