React to corefxlab changes (#1602)

This commit is contained in:
Pavel Krymets 2017-04-03 20:20:39 -07:00 committed by GitHub
parent f5d7caa9fa
commit fd5f3a771c
1 changed files with 3 additions and 3 deletions

View File

@ -27,7 +27,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Performance
[Benchmark(Baseline = true)] [Benchmark(Baseline = true)]
public unsafe int NoDotSegments() public unsafe int NoDotSegments()
{ {
_noDotSegmentsAscii.CopyTo(_noDotSegmentsBytes); _noDotSegmentsAscii.CopyTo(_noDotSegmentsBytes, 0);
fixed (byte* start = _noDotSegmentsBytes) fixed (byte* start = _noDotSegmentsBytes)
{ {
@ -38,7 +38,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Performance
[Benchmark] [Benchmark]
public unsafe int SingleDotSegments() public unsafe int SingleDotSegments()
{ {
_singleDotSegmentsAscii.CopyTo(_singleDotSegmentsBytes); _singleDotSegmentsAscii.CopyTo(_singleDotSegmentsBytes, 0);
fixed (byte* start = _singleDotSegmentsBytes) fixed (byte* start = _singleDotSegmentsBytes)
{ {
@ -49,7 +49,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Performance
[Benchmark] [Benchmark]
public unsafe int DoubleDotSegments() public unsafe int DoubleDotSegments()
{ {
_doubleDotSegmentsAscii.CopyTo(_doubleDotSegmentsBytes); _doubleDotSegmentsAscii.CopyTo(_doubleDotSegmentsBytes, 0);
fixed (byte* start = _doubleDotSegmentsBytes) fixed (byte* start = _doubleDotSegmentsBytes)
{ {