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

Process streamed data #174

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

schauerte
Copy link

Trying to implement #161 by adding a new option without too many overhead.
This solution is not optimal:

  1. The support for streamed data is added by the generic StreamedOption. This allows the option to be introduced with minimal code changes, but breaks with the option model used so far. Maybe this is OK, because the user has no change to activate this option from the outside: only the new DeserializeStream method uses this wrapper.
  2. The place of the check (ExpectEndOfStream) is somewhat strange - see Deserialize multiple objects from stream #161 for details.

I would love to see this (or a better) solution merged. Don't hesitate to yell at me, if I've done anything completely wrong or can assist further in implementation.

Many thanks in advance.

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.

None yet

1 participant