1 instantiation of SafeLocalFree
System (1)
net\System\Net\_SafeNetHandles.cs (1)
658public static SafeLocalFree Zero = new SafeLocalFree(false);
59 references to SafeLocalFree
System (59)
net\System\Net\_ListenerResponseStream.cs (5)
150SafeLocalFree bufferAsIntPtr = null; 168bufferAsIntPtr = SafeLocalFree.LocalAlloc((int)dataToWrite); 199SafeLocalFree.Zero, 281SafeLocalFree.Zero, 425SafeLocalFree.Zero,
net\System\Net\_SafeNetHandles.cs (3)
658public static SafeLocalFree Zero = new SafeLocalFree(false); 664public static SafeLocalFree LocalAlloc(int cb) { 665SafeLocalFree result = UnsafeNclNativeMethods.SafeNetHandles.LocalAlloc(LMEM_FIXED, (UIntPtr) cb);
net\System\Net\HttpListener.cs (1)
2386SafeLocalFree.Zero,
net\System\Net\HttpListenerResponse.cs (2)
542SafeLocalFree.Zero, 571SafeLocalFree.Zero,
net\System\Net\Internal.cs (3)
212SafeLocalFree buffer = null; 216uint result = UnsafeNetInfoNativeMethods.GetAdaptersAddresses(AddressFamily.Unspecified, (uint)gaaFlags, IntPtr.Zero, SafeLocalFree.Zero, ref size); 221buffer = SafeLocalFree.LocalAlloc((int)size);
net\System\Net\NetworkInformation\ping.cs (5)
42SafeLocalFree requestBuffer = null; 43SafeLocalFree replyBuffer = null; 224SafeLocalFree buffer = ping.replyBuffer; 653replyBuffer = SafeLocalFree.LocalAlloc (MaxUdpPacket); 755requestBuffer = SafeLocalFree.LocalAlloc(buffer.Length);
net\System\Net\NetworkInformation\SystemIPGlobalProperties.cs (13)
27SafeLocalFree buffer = null; 31uint result = UnsafeNetInfoNativeMethods.GetNetworkParams(SafeLocalFree.Zero,ref size); 36buffer = SafeLocalFree.LocalAlloc((int)size); 154SafeLocalFree buffer = null; 161result = UnsafeNetInfoNativeMethods.GetTcpTable(SafeLocalFree.Zero, ref size, true); 166buffer = SafeLocalFree.LocalAlloc((int)size); 205result = UnsafeNetInfoNativeMethods.GetExtendedTcpTable(SafeLocalFree.Zero, ref size, true, 212buffer = SafeLocalFree.LocalAlloc((int)size); 261SafeLocalFree buffer = null; 267result = UnsafeNetInfoNativeMethods.GetUdpTable(SafeLocalFree.Zero, ref size, true); 271buffer = SafeLocalFree.LocalAlloc((int)size); 309result = UnsafeNetInfoNativeMethods.GetExtendedUdpTable(SafeLocalFree.Zero, ref size, true, 315buffer = SafeLocalFree.LocalAlloc((int)size);
net\System\Net\NetworkInformation\SystemIPv4InterfaceProperties.cs (3)
81SafeLocalFree buffer = null; 83uint result = UnsafeNetInfoNativeMethods.GetPerAdapterInfo(index,SafeLocalFree.Zero,ref size); 87buffer = SafeLocalFree.LocalAlloc((int)size);
net\System\Net\NetworkInformation\SystemNetworkInterface.cs (3)
80SafeLocalFree buffer = null; 90family, (uint)flags, IntPtr.Zero, SafeLocalFree.Zero, ref bufferSize); 95buffer = SafeLocalFree.LocalAlloc((int)bufferSize);
net\System\Net\NetworkInformation\UnSafeNetInfoNativemethods.cs (15)
600SafeLocalFree adapterAddresses, 628internal extern static uint GetTcpTable(SafeLocalFree pTcpTable, ref uint dwOutBufLen, bool order); 631internal extern static uint GetExtendedTcpTable(SafeLocalFree pTcpTable, ref uint dwOutBufLen, bool order, 635internal extern static uint GetUdpTable(SafeLocalFree pUdpTable, ref uint dwOutBufLen, bool order); 638internal extern static uint GetExtendedUdpTable(SafeLocalFree pUdpTable, ref uint dwOutBufLen, bool order, 641internal extern static uint GetNetworkParams(SafeLocalFree pFixedInfo,ref uint pOutBufLen); 644internal extern static uint GetPerAdapterInfo(uint IfIndex,SafeLocalFree pPerAdapterInfo,ref uint pOutBufLen); 657uint ipAddress, [In] SafeLocalFree data, ushort dataSize, ref IPOptions options, SafeLocalFree replyBuffer, uint replySize, uint timeout); 661uint ipAddress, [In] SafeLocalFree data, ushort dataSize, ref IPOptions options, SafeLocalFree replyBuffer, uint replySize, uint timeout); 665byte[] sourceSocketAddress, byte[] destSocketAddress, [In] SafeLocalFree data, ushort dataSize, ref IPOptions options, SafeLocalFree replyBuffer, uint replySize, uint timeout); 669byte[] sourceSocketAddress, byte[] destSocketAddress, [In] SafeLocalFree data, ushort dataSize, ref IPOptions options, SafeLocalFree replyBuffer, uint replySize, uint timeout);
net\System\Net\UnsafeNativeMethods.cs (5)
667internal static extern SafeLocalFree LocalAlloc(int uFlags, UIntPtr sizetdwBytes); 1563[In] SafeLocalFree lpProtocolBuffer, 2159internal static extern uint HttpSendHttpResponse(CriticalHandle requestQueueHandle, ulong requestId, uint flags, HTTP_RESPONSE* pHttpResponse, void* pCachePolicy, uint* pBytesSent, SafeLocalFree pRequestBuffer, uint requestBufferLength, NativeOverlapped* pOverlapped, void* pLogData); 2163internal static extern uint HttpSendResponseEntityBody(CriticalHandle requestQueueHandle, ulong requestId, uint flags, ushort entityChunkCount, HTTP_DATA_CHUNK* pEntityChunks, uint* pBytesSent, SafeLocalFree pRequestBuffer, uint requestBufferLength, NativeOverlapped* pOverlapped, void* pLogData); 2171internal static extern uint HttpSendResponseEntityBody2(CriticalHandle requestQueueHandle, ulong requestId, uint flags, ushort entityChunkCount, IntPtr pEntityChunks, out uint pBytesSent, SafeLocalFree pRequestBuffer, uint requestBufferLength, SafeHandle pOverlapped, IntPtr pLogData);
net\System\Net\WebSockets\WebSocketHttpListenerDuplexStream.cs (1)
532SafeLocalFree.Zero,