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

Commit 82be16b

Browse files
committed
IDuplexPipe
1 parent 792c5cd commit 82be16b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/System.IO.Pipelines/ref/System.IO.Pipelines.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public partial struct FlushResult
1414
public bool IsCanceled { get { throw null; } }
1515
public bool IsCompleted { get { throw null; } }
1616
}
17-
public partial interface IDuplexPipe : System.IDisposable
17+
public partial interface IDuplexPipe
1818
{
1919
System.IO.Pipelines.PipeReader Input { get; }
2020
System.IO.Pipelines.PipeWriter Output { get; }

src/System.IO.Pipelines/src/System/IO/Pipelines/IPipeConnection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace System.IO.Pipelines
77
/// <summary>
88
/// Defines a class that provides a duplex pipe from which data can be read from and written to.
99
/// </summary>
10-
public interface IDuplexPipe : IDisposable
10+
public interface IDuplexPipe
1111
{
1212
/// <summary>
1313
/// Gets the <see cref="PipeReader"/> half of the duplex pipe.

src/System.Memory/src/System/Buffers/BuffersExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public static T[] ToArray<T>(this ReadOnlySequence<T> sequence)
6060
/// </summary>
6161
public static void Write<T>(this IBufferWriter<T> bufferWriter, ReadOnlySpan<T> source)
6262
{
63-
Span<byte> destination = bufferWriter.GetSpan();
63+
Span<T> destination = bufferWriter.GetSpan();
6464

6565
// Fast path, try copying to the available memory directly
6666
if (source.Length <= destination.Length)

0 commit comments

Comments
 (0)