We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc13fb9 commit 23c8abbCopy full SHA for 23c8abb
UnitTests/UnitTests.HighPerformance.Shared/Buffers/Test_ArrayPoolBufferWriter{T}.cs
@@ -3,6 +3,7 @@
3
// See the LICENSE file in the project root for more information.
4
5
using System;
6
+using System.Buffers;
7
using System.Diagnostics.CodeAnalysis;
8
using System.IO;
9
using System.Linq;
@@ -159,7 +160,7 @@ public void Test_ArrayPoolBufferWriterOfT_AsStream()
159
160
161
Assert.AreEqual(writer.WrittenCount, data.Length);
162
- Stream stream = writer.AsStream();
163
+ Stream stream = ((IMemoryOwner<byte>)writer).AsStream();
164
165
Assert.AreEqual(stream.Length, data.Length);
166
0 commit comments