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