Function ArrayPool.ClaimWithExactLength
ClaimWithExactLength
(int length)
Returns an array with the specified length.
Public
Static
T[] ClaimWithExactLength (
int | length |
Returns an array with the specified length.
Use with caution as pooling too many arrays with different lengths that are rarely being reused will lead to an effective memory leak.
Use Claim if you just need an array that is at least as large as some value.
Warning
Returned arrays may contain arbitrary data. You cannot rely on it being zeroed out.