Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Expose BufferedStream UnderlyingStream and BufferSize properties#12569

Merged
jkotas merged 1 commit intodotnet:masterfrom
jkotas:BufferedStream
Oct 12, 2016
Merged

Expose BufferedStream UnderlyingStream and BufferSize properties#12569
jkotas merged 1 commit intodotnet:masterfrom
jkotas:BufferedStream

Conversation

@jkotas
Copy link
Copy Markdown
Member

@jkotas jkotas commented Oct 12, 2016

Fix #12356

@jkotas
Copy link
Copy Markdown
Member Author

jkotas commented Oct 12, 2016

cc @luqunl @stephentoub

Copy link
Copy Markdown
Member

@stephentoub stephentoub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@jkotas
Copy link
Copy Markdown
Member Author

jkotas commented Oct 12, 2016

@dotnet-bot test Innerloop Ubuntu14.04 Debug Build and Test please
@dotnet-bot test Innerloop Ubuntu14.04 Release Build and Test please

if (adapterExists)
{
Debug.Assert((adapter is BufferedStreamWrapper && ((BufferedStreamWrapper)adapter).UnderlyingStream is WinRtToNetFxStreamAdapter)
Debug.Assert((adapter is BufferedStream && ((BufferedStream)adapter).UnderlyingStream is WinRtToNetFxStreamAdapter)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given that you made the API netcoreapp1.1 specific I don't expect that this code can actually call it as it isn't compiled for netcoreapp1.1. I suspect you are actually still using the internal version of this API in System.Private.CoreLib which I pointed out to @luqunl in his PR but it doesn't look like he fixed.

Copy link
Copy Markdown
Member Author

@jkotas jkotas Oct 12, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The .csproj file is referencing the System.IO implementation - the implementation always has this member.

Yes, the CoreCLR build is still using CoreLib version of BufferedStream. It is not easy to fix in corefx because of name collisions. I plan to remove BufferedStream from CoreLib and then fix it.

@jkotas
Copy link
Copy Markdown
Member Author

jkotas commented Oct 12, 2016

@dotnet-bot test Innerloop Ubuntu14.04 Debug Build and Test please

@jkotas jkotas merged commit be874f8 into dotnet:master Oct 12, 2016
@karelz karelz modified the milestone: 1.2.0 Dec 3, 2016
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants