4 writes to cache
System.Diagnostics.EventLog (4)
System\Diagnostics\EventLogInternal.cs (4)
902cache = new byte[BUF_SIZE]; 916cache = tempcache; 923cache = new byte[minBytesNeeded]; 1135cache = null;
14 references to cache
System.Diagnostics.EventLog (14)
System\Diagnostics\EventLogInternal.cs (14)
780if (cache == null || (boolFlags[Flag_forwards] && entryIndex < firstCachedEntry) || 885Debug.Assert(cache != null, "Cannot get a non-negative position out of GetCachedEntryPos unless we have a cache"); 886return new EventLogEntry(cache, entryPos, this); 906cache, cache.Length, out bytesRead, out minBytesNeeded); 914byte[] tempcache = cache; 921if (minBytesNeeded > cache.Length) 927cache, cache.Length, out bytesRead, out _); 940return new EventLogEntry(cache, 0, this); 1016Debug.Assert(cache != null); 1017return pos + IntFrom(cache, pos); 1022Debug.Assert(cache != null); 1023return pos - IntFrom(cache, pos - 4);