Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

Added All Span APIs to Stream Polyfill #2344

Merged
merged 14 commits into from
Jun 5, 2018

Conversation

KrzysztofCwalina
Copy link
Member

@KrzysztofCwalina KrzysztofCwalina commented Jun 5, 2018

I added:

public static async ValueTask<int> ReadAsync(this Stream stream, Memory<byte> buffer, CancellationToken cancellationToken = default)
public static Task WriteAsync(this Stream stream, ReadOnlyMemory<byte> buffer, CancellationToken cancellationToken = default)
public static void Write(this Stream stream, ReadOnlySpan<byte> buffer)

@KrzysztofCwalina KrzysztofCwalina merged commit 8933c9c into dotnet:master Jun 5, 2018
@KrzysztofCwalina KrzysztofCwalina deleted the StreamAsync branch October 26, 2018 21:34
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.

1 participant