3 writes to _memStream
Microsoft.ML.Core (3)
Utilities\HybridMemoryStream.cs (3)
54
_memStream
= new MemoryStream();
119
_memStream
= null;
178
_memStream
= null;
13 references to _memStream
Microsoft.ML.Core (13)
Utilities\HybridMemoryStream.cs (13)
29
private Stream MyStream =>
_memStream
?? _overflowStream;
31
private bool IsMemory =>
_memStream
!= null;
100
Contracts.Assert(
_memStream
== null);
105
Contracts.Assert((
_memStream
== null) != (_overflowStream == null));
116
if (
_memStream
!= null)
118
_memStream
.Dispose();
159
Contracts.Assert(
_memStream
!= null);
163
Contracts.Check(
_memStream
.CanRead, "attempt to perform operation on closed stream");
172
long pos =
_memStream
.Position;
174
bool tmp =
_memStream
.TryGetBuffer(out buffer);
177
_memStream
.Dispose();
217
if (IsMemory &&
_memStream
.Position > _overflowBoundary - count)
234
if (IsMemory &&
_memStream
.Position >= _overflowBoundary)