22 references to Alloc
Interop.FunctionalTests (1)
src\Shared\Buffers.MemoryPool\UnmanagedBufferAllocator.cs (1)
159var newBlock = (void**)NativeMemory.Alloc((nuint)(size + sizeof(void*)));
Microsoft.AspNetCore.Server.HttpSys (1)
src\Shared\Buffers.MemoryPool\UnmanagedBufferAllocator.cs (1)
159var newBlock = (void**)NativeMemory.Alloc((nuint)(size + sizeof(void*)));
Microsoft.AspNetCore.Server.IIS (1)
src\Shared\Buffers.MemoryPool\UnmanagedBufferAllocator.cs (1)
159var newBlock = (void**)NativeMemory.Alloc((nuint)(size + sizeof(void*)));
Microsoft.AspNetCore.Server.Kestrel.Core (1)
src\Shared\Buffers.MemoryPool\UnmanagedBufferAllocator.cs (1)
159var newBlock = (void**)NativeMemory.Alloc((nuint)(size + sizeof(void*)));
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (1)
src\Shared\Buffers.MemoryPool\UnmanagedBufferAllocator.cs (1)
159var newBlock = (void**)NativeMemory.Alloc((nuint)(size + sizeof(void*)));
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (1)
src\Shared\Buffers.MemoryPool\UnmanagedBufferAllocator.cs (1)
159var newBlock = (void**)NativeMemory.Alloc((nuint)(size + sizeof(void*)));
System.Diagnostics.Process (2)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.ForkAndExecProcess.cs (1)
68arrPtr[i] = (byte*)NativeMemory.Alloc((nuint)byteLength + 1); //+1 for null termination
src\libraries\Common\src\System\Runtime\InteropServices\SpanOfCharAsUtf8StringMarshaller.cs (1)
47buffer = new Span<byte>((byte*)NativeMemory.Alloc((nuint)exactByteCount), exactByteCount);
System.Net.Ping (1)
src\libraries\Common\src\System\Runtime\InteropServices\SpanOfCharAsUtf8StringMarshaller.cs (1)
47buffer = new Span<byte>((byte*)NativeMemory.Alloc((nuint)exactByteCount), exactByteCount);
System.Private.CoreLib (11)
src\libraries\Common\src\System\Runtime\InteropServices\SpanOfCharAsUtf8StringMarshaller.cs (1)
47buffer = new Span<byte>((byte*)NativeMemory.Alloc((nuint)exactByteCount), exactByteCount);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshal.Unix.cs (1)
61return (nint)NativeMemory.Alloc((nuint)cb);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshalling\AnsiStringMarshaller.cs (1)
85buffer = new Span<byte>((byte*)NativeMemory.Alloc((nuint)exactByteCount), exactByteCount);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshalling\ArrayMarshaller.cs (1)
159_allocatedMemory = (TUnmanagedElement*)NativeMemory.Alloc((nuint)spaceToAllocate);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshalling\PointerArrayMarshaller.cs (1)
160_allocatedMemory = (TUnmanagedElement*)NativeMemory.Alloc((nuint)spaceToAllocate);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshalling\ReadOnlySpanMarshaller.cs (1)
126_allocatedMemory = (TUnmanagedElement*)NativeMemory.Alloc((nuint)bufferSize);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshalling\SpanMarshaller.cs (1)
158_allocatedMemory = (TUnmanagedElement*)NativeMemory.Alloc((nuint)bufferSize);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshalling\Utf8StringMarshaller.cs (1)
89buffer = new Span<byte>((byte*)NativeMemory.Alloc((nuint)exactByteCount), exactByteCount);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NativeMemory.cs (1)
24return Alloc(byteCount);
src\libraries\System.Private.CoreLib\src\System\Threading\Overlapped.cs (1)
149pNativeOverlapped = (NativeOverlapped*)NativeMemory.Alloc(
src\libraries\System.Private.CoreLib\src\System\Threading\Win32ThreadPoolNativeOverlapped.cs (1)
65overlapped = (Win32ThreadPoolNativeOverlapped*)NativeMemory.Alloc((nuint)sizeof(Win32ThreadPoolNativeOverlapped));
System.Security.Cryptography (2)
src\libraries\Common\src\System\Runtime\InteropServices\SpanOfCharAsUtf8StringMarshaller.cs (1)
47buffer = new Span<byte>((byte*)NativeMemory.Alloc((nuint)exactByteCount), exactByteCount);
System\Security\Cryptography\FixedMemoryKeyBox.cs (1)
14void* memory = NativeMemory.Alloc((nuint)key.Length);