Checked length

This commit is contained in:
Ben Adams 2015-12-29 08:50:59 +00:00
parent 0f389f01cb
commit 80dc284407
1 changed files with 16 additions and 13 deletions

View File

@ -513,6 +513,8 @@ namespace Microsoft.AspNet.Server.Kestrel.Infrastructure
var block = _block; var block = _block;
var index = _index; var index = _index;
var length = 0; var length = 0;
checked
{
while (true) while (true)
{ {
if (block == end._block) if (block == end._block)
@ -531,6 +533,7 @@ namespace Microsoft.AspNet.Server.Kestrel.Infrastructure
} }
} }
} }
}
public MemoryPoolIterator2 CopyTo(byte[] array, int offset, int count, out int actual) public MemoryPoolIterator2 CopyTo(byte[] array, int offset, int count, out int actual)
{ {