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
New C# CharStreams static factory class #1775
Conversation
@ericvergnaud Can you comment on this new API? |
e462b5b
to
307df9c
Compare
Overall looks good except FromStream which unlike other APIs should NOT 'ReadToEnd'. |
Makes sense. But how do we know how much to parse? Add length args?
…On Tue, Mar 21, 2017, 10:15 AM ericvergnaud ***@***.***> wrote:
Overall looks good except FromStream which unlike other APIs should NOT
'ReadToEnd'.
If you're parsing from a socket, or stdin, EOF could be far away, or even
unreachable.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1775 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AApAU9cf7ZaJy0ED5LPhYACWaDrqCWU4ks5rn_eXgaJpZM4Mi2kc>
.
|
You don't need to know. |
I've added important comments here |
Hmm. Currently, the design of Could you give me an example of what you mean? |
@bhamiltoncx are these consistent now with our tweaks to the Java stream API? |
Yes, everything is consistent, although I didn't do any optimization passes yet, so we don't have a version that takes a size. |
Ok, we can probably worry about optimizing the other targets after 4.7. |
Based on the discussion at #1771 (comment) , this brings the Java runtime's
CharStreams
factory API to C#.I updated
BaseCSharpTest
to make use of the new API to illustrate how it works.