2 writes to _bufferPos
System.IO.FileSystem.Watcher (2)
System\IO\FileSystemWatcher.Linux.cs (2)
821
_bufferPos
= 0;
839
_bufferPos
+= c_INotifyEventSize + nameLength;
10 references to _bufferPos
System.IO.FileSystem.Watcher (10)
System\IO\FileSystemWatcher.Linux.cs (10)
693
if (
_bufferPos
== _bufferAvailable)
791
Debug.Assert(
_bufferPos
>= 0 &&
_bufferPos
<= _bufferAvailable);
794
if (_bufferAvailable == 0 ||
_bufferPos
== _bufferAvailable)
832
Debug.Assert(
_bufferPos
+ c_INotifyEventSize <= _bufferAvailable);
834
readEvent.wd = BitConverter.ToInt32(_buffer,
_bufferPos
);
835
readEvent.mask = BitConverter.ToUInt32(_buffer,
_bufferPos
+ 4); // +4 to get past wd
836
readEvent.cookie = BitConverter.ToUInt32(_buffer,
_bufferPos
+ 8); // +8 to get past wd, mask
837
int nameLength = (int)BitConverter.ToUInt32(_buffer,
_bufferPos
+ 12); // +12 to get past wd, mask, cookie
838
readEvent.name = ReadName(
_bufferPos
+ c_INotifyEventSize, nameLength); // +16 to get past wd, mask, cookie, len