浏览代码

Remove extraneous call to GetMemory (#4419)

Ben Adams 6 年之前
父节点
当前提交
18881c1af6
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      frameworks/CSharp/aspnetcore/PlatformBenchmarks/Utilities/BufferWriter.cs

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

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