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)
300Debug.Assert(_buffer != null && _buffer.Length > (c_INotifyEventSize + NAME_MAX + 1)); 802Debug.Assert(_buffer != null); 803Debug.Assert(_buffer.Length > 0); 804Debug.Assert(_bufferAvailable >= 0 && _bufferAvailable <= _buffer.Length); 816fixed (byte* buf = &_buffer[0]) 818_bufferAvailable = Interop.CheckIo(Interop.Sys.Read(_inotifyHandle, buf, this._buffer.Length)); 819Debug.Assert(_bufferAvailable <= this._buffer.Length); 848readEvent.wd = BitConverter.ToInt32(_buffer, _bufferPos); 849readEvent.mask = BitConverter.ToUInt32(_buffer, _bufferPos + 4); // +4 to get past wd 850readEvent.cookie = BitConverter.ToUInt32(_buffer, _bufferPos + 8); // +8 to get past wd, mask 851int nameLength = (int)BitConverter.ToUInt32(_buffer, _bufferPos + 12); // +12 to get past wd, mask, cookie 870Debug.Assert(nameLength >= 0 && (position + nameLength) <= _buffer.Length); 872int lengthWithoutNullTerm = _buffer.AsSpan(position, nameLength).IndexOf((byte)'\0'); 879Encoding.UTF8.GetString(_buffer, position, lengthWithoutNullTerm) :