18 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 (1)
src\libraries\Common\src\Interop\Unix\System.Native\Interop.ForkAndExecProcess.cs (1)
68arrPtr[i] = (byte*)NativeMemory.Alloc((nuint)byteLength + 1); //+1 for null termination
System.Private.CoreLib (10)
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshal.Unix.cs (1)
61return (nint)NativeMemory.Alloc((nuint)(nint)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)
149_allocatedMemory = (TUnmanagedElement*)NativeMemory.Alloc((nuint)spaceToAllocate);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshalling\PointerArrayMarshaller.cs (1)
150_allocatedMemory = (TUnmanagedElement*)NativeMemory.Alloc((nuint)spaceToAllocate);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshalling\ReadOnlySpanMarshaller.cs (1)
121_allocatedMemory = (TUnmanagedElement*)NativeMemory.Alloc((nuint)bufferSize);
src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshalling\SpanMarshaller.cs (1)
148_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 (1)
System\Security\Cryptography\FixedMemoryKeyBox.cs (1)
14void* memory = NativeMemory.Alloc((nuint)key.Length);