4 writes to cache
System.Diagnostics.EventLog (4)
System\Diagnostics\EventLogInternal.cs (4)
900cache = new byte[BUF_SIZE]; 914cache = tempcache; 921cache = new byte[minBytesNeeded]; 1133cache = null;
14 references to cache
System.Diagnostics.EventLog (14)
System\Diagnostics\EventLogInternal.cs (14)
778if (cache == null || (boolFlags[Flag_forwards] && entryIndex < firstCachedEntry) || 883Debug.Assert(cache != null, "Cannot get a non-negative position out of GetCachedEntryPos unless we have a cache"); 884return new EventLogEntry(cache, entryPos, this); 904cache, cache.Length, out bytesRead, out minBytesNeeded); 912byte[] tempcache = cache; 919if (minBytesNeeded > cache.Length) 925cache, cache.Length, out bytesRead, out _); 938return new EventLogEntry(cache, 0, this); 1014Debug.Assert(cache != null); 1015return pos + IntFrom(cache, pos); 1020Debug.Assert(cache != null); 1021return pos - IntFrom(cache, pos - 4);