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