-
Notifications
You must be signed in to change notification settings - Fork 27
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 remove pre-write actions in C++ #342
Comments
Consider to introduce some new user friendly method which will initialize offsets and children which could be generated in all zserio objects. |
Maybe we can also think about marking the offset info in C++ as |
This improves SerializeUtils to call all initialization methods automatically.
We have decided to remove all pre-write actions completely. This allows to have Together with this change, we have improved
|
The C++ BitStreamWriter does not allocate memory by itself. This allows applications to control memory allocation strategy.
However, this causes that application needs to call
bitSizeOf()
method beforewrite()
method. So, application must call as wellinitializeChildren()
andinitializeOffsets()
methods. Because of that, pre-write actions inwrite()
method which calls automatically alsoinitializeChildren()
andinitializeOffsets()
are not useful anymore.Moreover,
write()
method cannot beconst
because of these pre-write actions. Therefore, consider to remove completely pre-write actions.The text was updated successfully, but these errors were encountered: