36 references to Alloc
ILCompiler.ReadyToRun (2)
parent\parent\Common\JitInterface\CorInfoImpl.cs (2)
2396return NativeMemory.Alloc(sz); 3495return NativeMemory.Alloc(cBytes);
ILCompiler.RyuJit (2)
parent\parent\Common\JitInterface\CorInfoImpl.cs (2)
2396return NativeMemory.Alloc(sz); 3495return NativeMemory.Alloc(cBytes);
Microsoft.AspNetCore.Server.HttpSys (1)
src\aspnetcore\src\Shared\Buffers.MemoryPool\UnmanagedBufferAllocator.cs (1)
159var newBlock = (void**)NativeMemory.Alloc((nuint)(size + sizeof(void*)));
Microsoft.AspNetCore.Server.IIS (1)
src\aspnetcore\src\Shared\Buffers.MemoryPool\UnmanagedBufferAllocator.cs (1)
159var newBlock = (void**)NativeMemory.Alloc((nuint)(size + sizeof(void*)));
Microsoft.AspNetCore.Server.Kestrel.Core (1)
src\aspnetcore\src\Shared\Buffers.MemoryPool\UnmanagedBufferAllocator.cs (1)
159var newBlock = (void**)NativeMemory.Alloc((nuint)(size + sizeof(void*)));
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (1)
src\aspnetcore\src\Shared\Buffers.MemoryPool\UnmanagedBufferAllocator.cs (1)
159var newBlock = (void**)NativeMemory.Alloc((nuint)(size + sizeof(void*)));
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (1)
src\aspnetcore\src\Shared\Buffers.MemoryPool\UnmanagedBufferAllocator.cs (1)
159var newBlock = (void**)NativeMemory.Alloc((nuint)(size + sizeof(void*)));
System.Diagnostics.Process (3)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Native\Interop.ForkAndExecProcess.cs (2)
129byte* block = (byte*)NativeMemory.Alloc(checked(pointersByteLength + (nuint)dataByteLength)); 172byte* block = (byte*)NativeMemory.Alloc(checked(pointersByteLength + (nuint)dataByteLength));
src\runtime\src\libraries\Common\src\System\Runtime\InteropServices\SpanOfCharAsUtf8StringMarshaller.cs (1)
47buffer = new Span<byte>((byte*)NativeMemory.Alloc((nuint)exactByteCount), exactByteCount);
System.Net.Http.WinHttpHandler (1)
src\runtime\src\libraries\Common\src\Interop\Windows\WinHttp\Interop.winhttp.cs (1)
70void* value = NativeMemory.Alloc(sizeof(char) * (nuint)length);
System.Net.Ping (1)
src\runtime\src\libraries\Common\src\System\Runtime\InteropServices\SpanOfCharAsUtf8StringMarshaller.cs (1)
47buffer = new Span<byte>((byte*)NativeMemory.Alloc((nuint)exactByteCount), exactByteCount);
System.Private.CoreLib (12)
Internal\Runtime\CompilerServices\FunctionPointerOps.cs (1)
71descriptor = (IntPtr)NativeMemory.Alloc((uint)sizeof(GenericMethodDescriptor));
Internal\Runtime\CompilerServices\OpenMethodResolver.cs (1)
231returnValue = (IntPtr)NativeMemory.Alloc((nuint)sizeof(OpenMethodResolver));
src\runtime\src\libraries\Common\src\System\Runtime\InteropServices\SpanOfCharAsUtf8StringMarshaller.cs (1)
47buffer = new Span<byte>((byte*)NativeMemory.Alloc((nuint)exactByteCount), exactByteCount);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshal.Unix.cs (1)
62return (nint)NativeMemory.Alloc((nuint)cb);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshalling\AnsiStringMarshaller.cs (1)
86buffer = new Span<byte>((byte*)NativeMemory.Alloc((nuint)exactByteCount), exactByteCount);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshalling\ArrayMarshaller.cs (1)
160_allocatedMemory = (TUnmanagedElement*)NativeMemory.Alloc((nuint)spaceToAllocate);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshalling\PointerArrayMarshaller.cs (1)
161_allocatedMemory = (TUnmanagedElement*)NativeMemory.Alloc((nuint)spaceToAllocate);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshalling\ReadOnlySpanMarshaller.cs (1)
127_allocatedMemory = (TUnmanagedElement*)NativeMemory.Alloc((nuint)bufferSize);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshalling\SpanMarshaller.cs (1)
159_allocatedMemory = (TUnmanagedElement*)NativeMemory.Alloc((nuint)bufferSize);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\Marshalling\Utf8StringMarshaller.cs (1)
90buffer = new Span<byte>((byte*)NativeMemory.Alloc((nuint)exactByteCount), exactByteCount);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NativeMemory.cs (1)
25return Alloc(byteCount);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Overlapped.cs (1)
150pNativeOverlapped = (NativeOverlapped*)NativeMemory.Alloc(
System.Private.TypeLoader (1)
Internal\Runtime\TypeLoader\EETypeCreator.cs (1)
114return NativeMemory.Alloc((nuint)cbBytes);
System.Runtime.InteropServices.JavaScript (8)
System\Runtime\InteropServices\JavaScript\JSHostImplementation.cs (1)
132IntPtr buffer = (IntPtr)NativeMemory.Alloc((nuint)size);
System\Runtime\InteropServices\JavaScript\Marshaling\JSMarshalerArgument.Byte.cs (1)
112slot.IntPtrValue = (IntPtr)NativeMemory.Alloc((nuint)(value.Length * sizeof(byte)));
System\Runtime\InteropServices\JavaScript\Marshaling\JSMarshalerArgument.Double.cs (1)
117slot.IntPtrValue = (IntPtr)NativeMemory.Alloc((nuint)(value.Length * sizeof(double)));
System\Runtime\InteropServices\JavaScript\Marshaling\JSMarshalerArgument.Int32.cs (1)
111slot.IntPtrValue = (IntPtr)NativeMemory.Alloc((nuint)(value.Length * sizeof(int)));
System\Runtime\InteropServices\JavaScript\Marshaling\JSMarshalerArgument.JSObject.cs (1)
113JSMarshalerArgument* payload = (JSMarshalerArgument*)NativeMemory.Alloc((nuint)bytes);
System\Runtime\InteropServices\JavaScript\Marshaling\JSMarshalerArgument.Object.cs (1)
393JSMarshalerArgument* payload = (JSMarshalerArgument*)NativeMemory.Alloc((nuint)bytes);
System\Runtime\InteropServices\JavaScript\Marshaling\JSMarshalerArgument.Single.cs (1)
117slot.IntPtrValue = (IntPtr)NativeMemory.Alloc((nuint)(value.Length * sizeof(float)));
System\Runtime\InteropServices\JavaScript\Marshaling\JSMarshalerArgument.String.cs (1)
120JSMarshalerArgument* payload = (JSMarshalerArgument*)NativeMemory.Alloc((nuint)bytes);
System.Security.Cryptography (1)
System\Security\Cryptography\FixedMemoryKeyBox.cs (1)
14void* memory = NativeMemory.Alloc((nuint)key.Length);