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