13 references to _buffer
System.IO.FileSystem.Watcher (13)
System\IO\FileSystemWatcher.Linux.cs (13)
848Debug.Assert(_buffer != null); 849Debug.Assert(_buffer.Length > 0); 850Debug.Assert(_bufferAvailable >= 0 && _bufferAvailable <= _buffer.Length); 862fixed (byte* buf = &_buffer[0]) 864_bufferAvailable = Interop.CheckIo(Interop.Sys.Read(_inotifyHandle, buf, this._buffer.Length)); 865Debug.Assert(_bufferAvailable <= this._buffer.Length); 894readEvent.wd = BitConverter.ToInt32(_buffer, _bufferPos); 895readEvent.mask = BitConverter.ToUInt32(_buffer, _bufferPos + 4); // +4 to get past wd 896readEvent.cookie = BitConverter.ToUInt32(_buffer, _bufferPos + 8); // +8 to get past wd, mask 897int nameLength = (int)BitConverter.ToUInt32(_buffer, _bufferPos + 12); // +12 to get past wd, mask, cookie 916Debug.Assert(nameLength >= 0 && (position + nameLength) <= _buffer.Length); 918int lengthWithoutNullTerm = _buffer.AsSpan(position, nameLength).IndexOf((byte)'\0'); 925Encoding.UTF8.GetString(_buffer, position, lengthWithoutNullTerm) :