-
Notifications
You must be signed in to change notification settings - Fork 526
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
Add copy()
to message decoders
#966
Comments
This is a copy of the decoder and the underlying buffer. To be more in keeping with the SBE design it would makes sense to provide a decoder and buffer as a destination. We have an upcoming feature to have DTOs created from codecs that may be more appropriate. |
.. or have both options available. Assuming such a ad DTO: sounds interesting. Is there an issue for this? |
This will also be done for Java. #957 |
Solved with DTOs. |
Flyweights are mutable by nature. However, sometimes it is quite handy to make them 'frozen' or immutable.
For this reason, we could be adding a method like
copy()
like below to the SBE (JAVA) generator template and to agrona'sMessageDecoderFlyweight
interface:Volunteering for a PR, if this gets accepted.
The text was updated successfully, but these errors were encountered: