4 writes to _rgbBuf
System.Data.Common (4)
System\Data\SQLTypes\SQLBytes.cs (4)
68_rgbBuf = buffer; 92_rgbBuf = null; 485_rgbBuf = new byte[lStreamLen]; 507_rgbBuf = buffer;
25 references to _rgbBuf
System.Data.Common (25)
System\Data\SQLTypes\SQLBytes.cs (25)
70if (_rgbBuf == null) 78_lCurLen = _rgbBuf.Length; 124return _rgbBuf; 153_ => (_rgbBuf == null) ? -1L : _rgbBuf.Length, 181Array.Copy(_rgbBuf!, buffer, (int)_lCurLen); 266if (null == _rgbBuf) 269ArgumentOutOfRangeException.ThrowIfGreaterThan(value, _rgbBuf.Length); 328ReadOnlySpan<byte> span = new ReadOnlySpan<byte>(_rgbBuf, (int)offset, count); 344if (_rgbBuf == null) 349if (offset > _rgbBuf.Length) 352if (buffer.Length > _rgbBuf.Length - offset) 373if (_rgbBuf == null) 377if (offset > _rgbBuf.Length) 386if (count > _rgbBuf.Length - offset) 422Span<byte> span = _rgbBuf.AsSpan((int)offset, buffer.Length); 468Debug.Assert(FStream() || (_rgbBuf != null && _lCurLen <= _rgbBuf.Length)); 484if (_rgbBuf == null || _rgbBuf.Length < lStreamLen) 490_stream.ReadExactly(_rgbBuf, 0, (int)lStreamLen); 508_lCurLen = (_rgbBuf == null) ? x_lNull : _rgbBuf.Length; 510_state = (_rgbBuf == null) ? SqlBytesCharsState.Null : SqlBytesCharsState.Buffer; 652return _sb != null && (!_sb.IsNull || _sb._rgbBuf != null);