40 references to AllocateUninitializedArray
InMemory.FunctionalTests (1)
src\Shared\Buffers.MemoryPool\MemoryPoolBlock.cs (1)
17var pinnedArray = GC.AllocateUninitializedArray<byte>(length, pinned: true);
Microsoft.AspNetCore.Server.HttpSys (1)
src\Shared\Buffers.MemoryPool\MemoryPoolBlock.cs (1)
17var pinnedArray = GC.AllocateUninitializedArray<byte>(length, pinned: true);
Microsoft.AspNetCore.Server.IIS (1)
src\Shared\Buffers.MemoryPool\MemoryPoolBlock.cs (1)
17var pinnedArray = GC.AllocateUninitializedArray<byte>(length, pinned: true);
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
src\Shared\Buffers.MemoryPool\MemoryPoolBlock.cs (1)
17var pinnedArray = GC.AllocateUninitializedArray<byte>(length, pinned: true);
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (1)
src\Shared\Buffers.MemoryPool\MemoryPoolBlock.cs (1)
17var pinnedArray = GC.AllocateUninitializedArray<byte>(length, pinned: true);
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (1)
src\Shared\Buffers.MemoryPool\MemoryPoolBlock.cs (1)
17var pinnedArray = GC.AllocateUninitializedArray<byte>(length, pinned: true);
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (1)
src\Shared\Buffers.MemoryPool\MemoryPoolBlock.cs (1)
17var pinnedArray = GC.AllocateUninitializedArray<byte>(length, pinned: true);
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (1)
src\Shared\Buffers.MemoryPool\MemoryPoolBlock.cs (1)
17var pinnedArray = GC.AllocateUninitializedArray<byte>(length, pinned: true);
System.Collections.Immutable (1)
System\Collections\Frozen\String\LengthBuckets.cs (1)
92int[] copy = GC.AllocateUninitializedArray<int>(arraySize);
System.Linq (2)
System\Linq\SegmentedArrayBuilder.cs (2)
244result = GC.AllocateUninitializedArray<T>(count); 285result = GC.AllocateUninitializedArray<T>(count);
System.Numerics.Tensors (3)
System\Numerics\Tensors\netcore\Tensor.cs (2)
122T[] values = GC.AllocateUninitializedArray<T>((int)linearLength, pinned); 135T[] values = GC.AllocateUninitializedArray<T>((int)linearLength, pinned);
System\Numerics\Tensors\netcore\Tensor.Factory.cs (1)
177T[] values = GC.AllocateUninitializedArray<T>((int)linearLength, pinned);
System.Private.CoreLib (12)
src\libraries\System.Private.CoreLib\src\System\Buffers\SharedArrayPool.cs (1)
110buffer = GC.AllocateUninitializedArray<T>(minimumLength);
src\libraries\System.Private.CoreLib\src\System\IO\MemoryStream.cs (1)
573byte[] copy = GC.AllocateUninitializedArray<byte>(count);
src\libraries\System.Private.CoreLib\src\System\IO\Strategies\BufferedFileStreamStrategy.cs (1)
1037Interlocked.CompareExchange(ref _buffer, GC.AllocateUninitializedArray<byte>(_bufferSize), null);
src\libraries\System.Private.CoreLib\src\System\Runtime\Loader\AssemblyLoadContext.cs (1)
427byte[] bytes = GC.AllocateUninitializedArray<byte>((int)length);
src\libraries\System.Private.CoreLib\src\System\Text\StringBuilder.cs (7)
137m_ChunkChars = GC.AllocateUninitializedArray<char>(capacity); 163m_ChunkChars = GC.AllocateUninitializedArray<char>(capacity); 217m_ChunkChars = GC.AllocateUninitializedArray<char>(persistedCapacity); 282char[] newArray = GC.AllocateUninitializedArray<char>(newLen); 423char[] newArray = GC.AllocateUninitializedArray<char>(newLen); 2571char[] chunkChars = GC.AllocateUninitializedArray<char>(newBlockLength); 2711m_ChunkChars = GC.AllocateUninitializedArray<char>(size);
src\libraries\System.Private.CoreLib\src\System\Text\TranscodingStream.cs (1)
201_readBuffer = GC.AllocateUninitializedArray<byte>(_thisEncoding.GetMaxByteCount(_readCharBufferMaxSize));
System.Security.Cryptography (13)
System\Security\Cryptography\MD5.cs (1)
68byte[] buffer = GC.AllocateUninitializedArray<byte>(HashSizeInBytes);
System\Security\Cryptography\SHA1.cs (1)
65byte[] buffer = GC.AllocateUninitializedArray<byte>(HashSizeInBytes);
System\Security\Cryptography\SHA256.cs (1)
64byte[] buffer = GC.AllocateUninitializedArray<byte>(HashSizeInBytes);
System\Security\Cryptography\SHA384.cs (1)
64byte[] buffer = GC.AllocateUninitializedArray<byte>(HashSizeInBytes);
System\Security\Cryptography\SHA512.cs (1)
64byte[] buffer = GC.AllocateUninitializedArray<byte>(HashSizeInBytes);
System\Security\Cryptography\SymmetricAlgorithm.cs (5)
473byte[] decryptBuffer = GC.AllocateUninitializedArray<byte>(ciphertext.Length); 592byte[] buffer = GC.AllocateUninitializedArray<byte>(ciphertextLength); 879byte[] buffer = GC.AllocateUninitializedArray<byte>(ciphertextLength); 1075byte[] decryptBuffer = GC.AllocateUninitializedArray<byte>(ciphertext.Length); 1315byte[] buffer = GC.AllocateUninitializedArray<byte>(ciphertextLength);
System\Security\Cryptography\UniversalCryptoDecryptor.cs (1)
155byte[] buffer = GC.AllocateUninitializedArray<byte>(inputCount);
System\Security\Cryptography\UniversalCryptoEncryptor.cs (1)
50byte[] buffer = GC.AllocateUninitializedArray<byte>(ciphertextLength);
System\Security\Cryptography\X509Certificates\X509Certificate2Collection.cs (1)
385byte[] certBytes = GC.AllocateUninitializedArray<byte>(fields.DecodedDataLength);
System.Windows.Forms (1)
System\Windows\Forms\ToolTip\ToolTipBuffer.cs (1)
27_buffer = GC.AllocateUninitializedArray<char>(text.Length + 1, pinned: true);