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)
70
if (
_rgbBuf
== null)
78
_lCurLen =
_rgbBuf
.Length;
124
return
_rgbBuf
;
153
_ => (
_rgbBuf
== null) ? -1L :
_rgbBuf
.Length,
181
Array.Copy(
_rgbBuf
!, buffer, (int)_lCurLen);
266
if (null ==
_rgbBuf
)
269
ArgumentOutOfRangeException.ThrowIfGreaterThan(value,
_rgbBuf
.Length);
328
ReadOnlySpan<byte> span = new ReadOnlySpan<byte>(
_rgbBuf
, (int)offset, count);
344
if (
_rgbBuf
== null)
349
if (offset >
_rgbBuf
.Length)
352
if (buffer.Length >
_rgbBuf
.Length - offset)
373
if (
_rgbBuf
== null)
377
if (offset >
_rgbBuf
.Length)
386
if (count >
_rgbBuf
.Length - offset)
422
Span<byte> span =
_rgbBuf
.AsSpan((int)offset, buffer.Length);
468
Debug.Assert(FStream() || (
_rgbBuf
!= null && _lCurLen <=
_rgbBuf
.Length));
484
if (
_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;
652
return _sb != null && (!_sb.IsNull || _sb.
_rgbBuf
!= null);