1 write to _buffer
System.IO.FileSystem.Watcher (1)
System\IO\FileSystemWatcher.Linux.cs (1)
299
_buffer
= watcher.AllocateBuffer();
15 references to _buffer
System.IO.FileSystem.Watcher (15)
System\IO\FileSystemWatcher.Linux.cs (15)
300
Debug.Assert(
_buffer
!= null &&
_buffer
.Length > (c_INotifyEventSize + NAME_MAX + 1));
802
Debug.Assert(
_buffer
!= null);
803
Debug.Assert(
_buffer
.Length > 0);
804
Debug.Assert(_bufferAvailable >= 0 && _bufferAvailable <=
_buffer
.Length);
816
fixed (byte* buf = &
_buffer
[0])
818
_bufferAvailable = Interop.CheckIo(Interop.Sys.Read(_inotifyHandle, buf, this.
_buffer
.Length));
819
Debug.Assert(_bufferAvailable <= this.
_buffer
.Length);
848
readEvent.wd = BitConverter.ToInt32(
_buffer
, _bufferPos);
849
readEvent.mask = BitConverter.ToUInt32(
_buffer
, _bufferPos + 4); // +4 to get past wd
850
readEvent.cookie = BitConverter.ToUInt32(
_buffer
, _bufferPos + 8); // +8 to get past wd, mask
851
int nameLength = (int)BitConverter.ToUInt32(
_buffer
, _bufferPos + 12); // +12 to get past wd, mask, cookie
870
Debug.Assert(nameLength >= 0 && (position + nameLength) <=
_buffer
.Length);
872
int lengthWithoutNullTerm =
_buffer
.AsSpan(position, nameLength).IndexOf((byte)'\0');
879
Encoding.UTF8.GetString(
_buffer
, position, lengthWithoutNullTerm) :