2 instantiations of OverlappedCache
System (2)
net\System\Net\Sockets\_BaseOverlappedAsyncResult.cs (2)
193
m_Cache = new
OverlappedCache
(new Overlapped(), objectsToPinArray, s_IOCallback);
197
m_Cache = new
OverlappedCache
(new Overlapped(), objectsToPin, s_IOCallback, triedCastingToArray);
21 references to OverlappedCache
System (21)
net\System\Net\Sockets\_BaseOverlappedAsyncResult.cs (12)
32
private
OverlappedCache
m_Cache;
225
protected void SetupCache(ref
OverlappedCache
overlappedCache)
231
m_Cache = overlappedCache == null ? null : Interlocked.Exchange<
OverlappedCache
>(ref overlappedCache, null);
270
internal void ExtractCache(ref
OverlappedCache
overlappedCache)
277
OverlappedCache
cache = m_Cache == null ? null : Interlocked.Exchange<
OverlappedCache
>(ref m_Cache, null);
289
OverlappedCache
oldCache = Interlocked.Exchange<
OverlappedCache
>(ref overlappedCache, cache);
618
OverlappedCache
.InterlockedFree(ref m_Cache);
746
internal static void InterlockedFree(ref
OverlappedCache
overlappedCache)
748
OverlappedCache
cache = overlappedCache == null ? null : Interlocked.Exchange<
OverlappedCache
>(ref overlappedCache, null);
net\System\Net\Sockets\_OverlappedAsyncResult.cs (3)
103
internal void SetUnmanagedStructures(byte[] buffer, int offset, int size, SocketAddress socketAddress, bool pinSocketAddress, ref
OverlappedCache
overlappedCache)
131
internal void SetUnmanagedStructures(BufferOffsetSize[] buffers, ref
OverlappedCache
overlappedCache)
168
internal void SetUnmanagedStructures(IList<ArraySegment<byte>> buffers, ref
OverlappedCache
overlappedCache)
net\System\Net\Sockets\_ReceiveMessageOverlappedAsyncResult.cs (1)
131
internal void SetUnmanagedStructures(byte[] buffer, int offset, int size, SocketAddress socketAddress, SocketFlags socketFlags, ref
OverlappedCache
overlappedCache)
net\System\Net\Sockets\_TransmitFileOverlappedAsyncResult.cs (1)
114
internal void SetUnmanagedStructures(byte[] preBuffer, byte[] postBuffer, FileStream fileStream, TransmitFileOptions flags, ref
OverlappedCache
overlappedCache)
net\System\Net\Sockets\Socket.cs (4)
79
internal
OverlappedCache
SendOverlappedCache;
80
internal
OverlappedCache
ReceiveOverlappedCache;
6393
OverlappedCache
.InterlockedFree(ref m_Caches.SendOverlappedCache);
6394
OverlappedCache
.InterlockedFree(ref m_Caches.ReceiveOverlappedCache);