2 writes to _dataStream
System.Private.Windows.Core (2)
Windows\Win32\System\Com\ComManagedStream.cs (2)
22
_dataStream
= memoryStream;
26
_dataStream
= stream;
20 references to _dataStream
System.Private.Windows.Core (20)
Windows\Win32\System\Com\ComManagedStream.cs (20)
35
if (_virtualPosition >
_dataStream
.Length)
36
_dataStream
.SetLength(_virtualPosition);
38
_dataStream
.Position = _virtualPosition;
43
public Stream GetDataStream() =>
_dataStream
;
54
new ComManagedStream(
_dataStream
) { _virtualPosition = _virtualPosition });
61
_dataStream
.Flush();
121
int read =
_dataStream
.Read(buffer);
134
long position = _virtualPosition == -1 ?
_dataStream
.Position : _virtualPosition;
135
long length =
_dataStream
.Length;
142
_dataStream
.Position = dlibMove;
154
_dataStream
.Position = length + dlibMove;
166
_dataStream
.Position = position + dlibMove;
180
*plibNewPosition = _virtualPosition == -1 ? (ulong)
_dataStream
.Position : (ulong)_virtualPosition;
186
_dataStream
.SetLength(checked((long)libNewSize));
199
cbSize = (ulong)
_dataStream
.Length,
203
grfMode =
_dataStream
.CanWrite
204
?
_dataStream
.CanRead
213
pstatstg->pwcsName = (char*)Marshal.StringToCoTaskMemUni(
_dataStream
is FileStream fs ? fs.Name :
_dataStream
.ToString());
238
_dataStream
.Write(buffer);