Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Return() [10/10]

static void System.Security.Cryptography.CryptoPool.Return ( byte[] array,
int clearSize = -1 )
inlinestaticpackage

Definition at line 17 of file CryptoPool.cs.

18 {
19 bool flag = clearSize < 0;
20 if (!flag && clearSize != 0)
21 {
22 CryptographicOperations.ZeroMemory(array.AsSpan(0, clearSize));
23 }
24 ArrayPool<byte>.Shared.Return(array, flag);
25 }
static ArrayPool< T > Shared
Definition ArrayPool.cs:7

References System.array, System.Buffers.ArrayPool< T >.Shared, and System.Security.Cryptography.CryptographicOperations.ZeroMemory().