File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22<package >
33 <metadata >
44 <id >Microsoft.IO.RecyclableMemoryStream</id >
5- <version >1.2.0 </version >
6- <title >Micrisift .IO.RecyclableMemoryStream</title >
5+ <version >1.2.1 </version >
6+ <title >Microsoft .IO.RecyclableMemoryStream</title >
77 <authors >Ben Watson; Chip Locke</authors >
88 <licenseUrl >https://github.com/Microsoft/Microsoft.IO.RecyclableMemoryStream/blob/master/LICENSE</licenseUrl >
99 <projectUrl >https://github.com/Microsoft/Microsoft.IO.RecyclableMemoryStream</projectUrl >
Original file line number Diff line number Diff line change @@ -444,6 +444,9 @@ public void GiantAllocationSucceeds()
444444 var stream = mgr . GetStream ( null , requestedSize ) ;
445445 Assert . IsTrue ( stream . Capacity >= requestedSize ) ;
446446 }
447+
448+ var maxStream = mgr . GetStream ( null , int . MaxValue ) ;
449+ Assert . IsTrue ( maxStream . Capacity == int . MaxValue ) ;
447450 }
448451 #endregion
449452
Original file line number Diff line number Diff line change @@ -314,7 +314,7 @@ public override int Capacity
314314 return this . largeBuffer . Length ;
315315 }
316316
317- long size = this . blocks . Count * this . memoryManager . BlockSize ;
317+ long size = ( long ) this . blocks . Count * this . memoryManager . BlockSize ;
318318 return ( int ) Math . Min ( int . MaxValue , size ) ;
319319 }
320320 set
You can’t perform that action at this time.
0 commit comments