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)
29private Stream MyStream => _memStream ?? _overflowStream; 31private bool IsMemory => _memStream != null; 100Contracts.Assert(_memStream == null); 105Contracts.Assert((_memStream == null) != (_overflowStream == null)); 116if (_memStream != null) 118_memStream.Dispose(); 159Contracts.Assert(_memStream != null); 163Contracts.Check(_memStream.CanRead, "attempt to perform operation on closed stream"); 172long pos = _memStream.Position; 174bool tmp = _memStream.TryGetBuffer(out buffer); 177_memStream.Dispose(); 217if (IsMemory && _memStream.Position > _overflowBoundary - count) 234if (IsMemory && _memStream.Position >= _overflowBoundary)