Browse Source

Remove extraneous call to GetMemory (#4419)

Ben Adams 6 years ago
parent
commit
18881c1af6

+ 1 - 2
frameworks/CSharp/aspnetcore/PlatformBenchmarks/Utilities/BufferWriter.cs

@@ -72,8 +72,7 @@ namespace PlatformBenchmarks
                 Commit();
                 Commit();
             }
             }
 
 
-            _output.GetMemory(count);
-            _span = _output.GetSpan();
+            _span = _output.GetSpan(count);
         }
         }
 
 
         private void WriteMultiBuffer(ReadOnlySpan<byte> source)
         private void WriteMultiBuffer(ReadOnlySpan<byte> source)