1 write to _stream
System.Data.Common (1)
System\Data\SQLTypes\SqlXml.cs (1)
282
_stream
= stream;
41 references to _stream
System.Data.Common (41)
System\Data\SQLTypes\SqlXml.cs (41)
283
Debug.Assert(
_stream
!= null, "stream can not be null");
301
return
_stream
.CanRead;
311
return
_stream
.CanSeek;
321
return
_stream
.CanWrite;
331
return
_stream
.Length;
348
ArgumentOutOfRangeException.ThrowIfGreaterThan(value,
_stream
.Length);
367
ArgumentOutOfRangeException.ThrowIfGreaterThan(offset,
_stream
.Length);
374
ArgumentOutOfRangeException.ThrowIfGreaterThan(lPosition,
_stream
.Length, nameof(offset));
379
lPosition =
_stream
.Length + offset;
381
ArgumentOutOfRangeException.ThrowIfGreaterThan(lPosition,
_stream
.Length, nameof(offset));
403
if (
_stream
.CanSeek &&
_stream
.Position != _lPosition)
404
_stream
.Seek(_lPosition, SeekOrigin.Begin);
406
int iBytesRead =
_stream
.Read(buffer, offset, count);
419
if (
_stream
.CanSeek &&
_stream
.Position != _lPosition)
420
_stream
.Seek(_lPosition, SeekOrigin.Begin);
422
int iBytesRead =
_stream
.Read(buffer);
439
if (
_stream
.CanSeek &&
_stream
.Position != _lPosition)
440
_stream
.Seek(_lPosition, SeekOrigin.Begin);
442
_stream
.Write(buffer, offset, count);
453
if (
_stream
.CanSeek && _lPosition >=
_stream
.Length)
456
if (
_stream
.CanSeek &&
_stream
.Position != _lPosition)
457
_stream
.Seek(_lPosition, SeekOrigin.Begin);
459
int ret =
_stream
.ReadByte();
468
if (
_stream
.CanSeek &&
_stream
.Position != _lPosition)
469
_stream
.Seek(_lPosition, SeekOrigin.Begin);
470
_stream
.WriteByte(value);
479
_stream
.SetLength(value);
486
_stream
?.Flush();
504
if (!
_stream
.CanSeek)
510
if (!
_stream
.CanRead)
516
if (!
_stream
.CanWrite)
529
if (_isClosed ||
_stream
== null || (!
_stream
.CanRead && !
_stream
.CanWrite && !
_stream
.CanSeek))