Core\CSharp\MS\Internal\Ink\InkSerializedFormat\CustomAttributeSerializer.cs (7)
59internal static void EncodeToStream(ExtendedProperty attribute, Stream stream)
91internal static void EncodeAttribute(Guid guid, object value, VarEnum type, Stream stream)
337internal static uint EncodeAsISF(Guid id, byte[] data, Stream strm, GuidList guidList, byte compressionAlgorithm, bool fTag)
446internal static uint DecodeAsISF(Stream stream, uint cbSize, GuidList guidList, KnownTagCache.KnownTagIndex tag, ref Guid guid, out object data)
545internal static object DecodeAttribute(Guid guid, Stream stream)
563internal static object DecodeAttribute(Guid guid, Stream memStream, out VarEnum type)
773internal static uint EncodeAsISF(ExtendedPropertyCollection attributes, Stream stream, GuidList guidList, byte compressionAlgorithm, bool fTag)
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\DrawingAttributeSerializer.cs (8)
132internal static uint DecodeAsISF(Stream stream, GuidList guidList, uint maximumStreamSize, DrawingAttributes da)
478internal static uint EncodeAsISF(DrawingAttributes da, Stream stream, GuidList guidList, byte compressionAlgorithm, bool fTag)
504private static void PersistDrawingFlags(DrawingAttributes da, Stream stream, GuidList guidList, ref uint cbData, ref BinaryWriter bw)
522private static void PersistColorAndTransparency(DrawingAttributes da, Stream stream, GuidList guidList, ref uint cbData, ref BinaryWriter bw)
555private static void PersistRasterOperation(DrawingAttributes da, Stream stream, GuidList guidList, ref uint cbData, ref BinaryWriter bw)
596private static void PersistExtendedProperties(DrawingAttributes da, Stream stream, GuidList guidList, ref uint cbData, ref BinaryWriter bw, byte compressionAlgorithm, bool fTag)
642private static void PersistStylusTip(DrawingAttributes da, Stream stream, GuidList guidList, ref uint cbData, ref BinaryWriter bw)
669private static void PersistWidthHeight(DrawingAttributes da, Stream stream, GuidList guidList, ref uint cbData, ref BinaryWriter bw)
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (25)
82internal void DecodeISF(Stream inkData)
212internal uint LoadStrokeIds(Stream isfStream, uint cbSize)
250private bool IsGIFData(Stream inkdata)
267private void ExamineStreamHeader(Stream inkdata, out bool fBase64, out bool fGif, out uint cbData)
315private void DecodeRawISF(Stream inputStream)
840private uint LoadDrawAttrsTable(Stream strm, GuidList guidList, uint cbSize)
899private uint DecodeStrokeDescriptor(Stream strm, uint cbSize, out StrokeDescriptor descr)
979private uint DecodeStrokeDescriptorBlock(Stream strm, uint cbSize)
1003private uint DecodeStrokeDescriptorTable(Stream strm, uint cbSize)
1055private uint DecodeMetricTable(Stream strm, uint cbSize)
1105private uint DecodeMetricBlock(Stream strm, uint cbSize, out MetricBlock block)
1174private uint DecodeTransformTable(Stream strm, uint cbSize, bool useDoubles)
1230internal static uint ReliableRead(Stream stream, byte[] buffer, uint requestedCount)
1266private uint DecodeTransformBlock(Stream strm, KnownTagCache.KnownTagIndex tag, uint cbSize, bool useDoubles, out TransformDescriptor xform)
1353private uint DecodeInkSpaceRectangle(Stream strm, uint cbSize)
1719internal void EncodeISF(Stream outputStream)
1924private void StoreStrokeData(Stream localStream, GuidList guidList, ref uint cumulativeEncodedSize, ref uint localEncodedSize)
2058internal static uint SaveStrokeIds(StrokeCollection strokes, Stream strm, bool forceSave)
2159private bool IsBase64Data(Stream data)
2265private uint SerializePacketDescrTable(Stream strm)
2321private uint SerializeMetricTable(Stream strm)
2369private uint EncodeStrokeDescriptor(Stream strm, StrokeDescriptor strd)
2390private uint SerializeTransformTable(Stream strm)
2464private uint EncodeTransformDescriptor(Stream strm, TransformDescriptor xform, bool useDoubles)
2534private uint SerializeDrawingAttrsTable(Stream stream, GuidList guidList)
src\Framework\MS\Internal\AppModel\AppModelKnownContentFactory.cs (3)
43internal static object BamlConverter(Stream stream, Uri baseUri, bool canUseTopLevelBrowser, bool sandboxExternalContent, bool allowAsync, bool isJournalNavigation, out XamlReader asyncObjectConverter)
81internal static object XamlConverter(Stream stream, Uri baseUri, bool canUseTopLevelBrowser, bool sandboxExternalContent, bool allowAsync, bool isJournalNavigation, out XamlReader asyncObjectConverter)
131internal static object HtmlXappConverter(Stream stream, Uri baseUri, bool canUseTopLevelBrowser, bool sandboxExternalContent, bool allowAsync, bool isJournalNavigation, out XamlReader asyncObjectConverter)
src\Framework\MS\Internal\AppModel\MimeObjectFactory.cs (2)
27internal delegate object StreamToObjectFactoryDelegate(Stream s, Uri baseUri, bool canUseTopLevelBrowser, bool sandboxExternalContent, bool allowAsync, bool isJournalNavigation, out XamlReader asyncObjectConverter);
41internal static object GetObjectAndCloseStream(Stream s, ContentType contentType, Uri baseUri, bool canUseTopLevelBrowser, bool sandboxExternalContent, bool allowAsync, bool isJournalNavigation, out XamlReader asyncObjectConverter)
src\Framework\System\Windows\Documents\XPSS0ValidatingLoader.cs (3)
30internal object Load(Stream stream, Uri parentUri, ParserContext pc, ContentType mimeType)
35internal void Validate(Stream stream, Uri parentUri, ParserContext pc, ContentType mimeType, string rootElement)
56private object Load(Stream stream, Uri parentUri, ParserContext pc, ContentType mimeType, string rootElement)
net\System\Net\Cache\_CacheStreams.cs (13)
31private Stream m_WrappedStream;
33protected Stream WrappedStream
38public BaseWrapperStream(Stream wrappedStream)
57private Stream m_HeadStream;
64internal CombinedReadStream(Stream headStream, Stream tailStream)
68m_HeadEOF = headStream == Stream.Null;
367private Stream m_ShadowStream;
376internal ForwardingReadStream(Stream originalStream, Stream shadowStream, long bytesToSkip, bool throwOnWriteError)
858internal MetadataUpdateStream( Stream parentStream,
884private MetadataUpdateStream(Stream parentStream, RequestCache cache, string key, bool isStrictCacheErrors)
1050internal RangeStream (Stream parentStream, long offset, long size)
net\System\Net\Cache\_SingleItemRequestCache.cs (13)
44public FrozenCacheEntry(string key, RequestCacheEntry entry, Stream stream): this(key, entry, GetBytes(stream))
65static byte[] GetBytes(Stream stream)
122internal override Stream Retrieve(string key, out RequestCacheEntry cacheEntry)
124Stream result;
138internal override Stream Store(string key, long contentLength, DateTime expiresUtc, DateTime lastModifiedUtc, TimeSpan maxStale, StringCollection entryMetadata, StringCollection systemMetadata)
140Stream result;
174internal override bool TryRetrieve(string key, out RequestCacheEntry cacheEntry, out Stream readStream)
186Stream realCacheStream;
204internal override bool TryStore(string key, long contentLength, DateTime expiresUtc, DateTime lastModifiedUtc, TimeSpan maxStale, StringCollection entryMetadata, StringCollection systemMetadata, out Stream writeStream)
224Stream realWriteStream = null;
290internal override void UnlockEntry(Stream stream)
452private Stream _RealStream;
460public WriteOnlyStream(string key, SingleItemRequestCache cache, RequestCacheEntry cacheEntry, Stream realWriteStream)
net\System\Net\Cache\IERequestCache.cs (12)
80internal override Stream Retrieve(string key, out RequestCacheEntry cacheEntry)
85internal override bool TryRetrieve(string key, out RequestCacheEntry cacheEntry, out Stream readStream)
97internal override Stream Store(string key, long contentLength, DateTime expiresUtc, DateTime lastModifiedUtc, TimeSpan maxStale, StringCollection entryMetadata, StringCollection systemMetadata)
102internal override bool TryStore(string key, long contentLength, DateTime expiresUtc, DateTime lastModifiedUtc, TimeSpan maxStale, StringCollection entryMetadata, StringCollection systemMetadata, out Stream writeStream)
209internal override void UnlockEntry(Stream stream)
223private Stream Lookup(string key, out RequestCacheEntry cacheEntry, bool isThrow)
231Stream result = Stream.Null;
338result = Stream.Null;
383private Stream GetWriteStream(string key, long contentLength, DateTime expiresUtc, DateTime lastModifiedUtc, TimeSpan maxStale, StringCollection entryMetadata, StringCollection systemMetadata, bool isThrow)
461Stream result = Stream.Null;
net\System\Net\mail\Attachment.cs (10)
34protected AttachmentBase(Stream contentStream) {
38protected AttachmentBase(Stream contentStream, string mediaType) {
42internal AttachmentBase(Stream contentStream, string name, string mediaType) {
46protected AttachmentBase(Stream contentStream, ContentType contentType) {
89Stream stream = new FileStream(fileName, FileMode.Open, FileAccess.Read, FileShare.Read);
106Stream stream = new FileStream(fileName, FileMode.Open, FileAccess.Read, FileShare.Read);
201public Stream ContentStream {
333public Attachment(Stream contentStream, string name) :
340public Attachment(Stream contentStream, string name, string mediaType) :
347public Attachment(Stream contentStream, ContentType contentType) :
net\System\Net\webclient.cs (41)
429public Stream OpenRead(string address) {
435public Stream OpenRead(Uri address) {
444Stream stream = response.GetResponseStream();
467public Stream OpenWrite(string address) {
473public Stream OpenWrite(Uri address) {
480public Stream OpenWrite(string address, string method) {
486public Stream OpenWrite(Uri address, string method) {
1072internal Stream WriteStream;
1077internal Stream ReadStream;
1080internal DownloadBitsState(WebRequest request, Stream writeStream, CompletionDelegate completionDelegate, AsyncOperation asyncOp, ProgressData progress, WebClient webClient) {
1128if (ReadStream == null || ReadStream == Stream.Null)
1133if (ReadStream == null || ReadStream == Stream.Null)
1242Stream stream = state.ReadStream;
1249if (stream != null && stream != Stream.Null)
1282private byte[] DownloadBits(WebRequest request, Stream writeStream, CompletionDelegate completionDelegate, AsyncOperation asyncOp) {
1331internal Stream WriteStream;
1340internal Stream ReadStream;
1342internal UploadBitsState(WebRequest request, Stream readStream, byte[] buffer, int chunkSize, byte[] header, byte[] footer, CompletionDelegate uploadCompletionDelegate, CompletionDelegate downloadCompletionDelegate, AsyncOperation asyncOp, ProgressData progress, WebClient webClient) {
1380internal void SetRequestStream(Stream writeStream) {
1478Stream stream = request.EndGetRequestStream(result);
1502Stream stream = (Stream) state.WriteStream;
1540private void UploadBits(WebRequest request, Stream readStream, byte[] buffer, int chunkSize, byte[] header, byte[] footer, CompletionDelegate uploadCompletionDelegate, CompletionDelegate downloadCompletionDelegate, AsyncOperation asyncOp) {
1545Stream writeStream;
1801Stream stream = null;
2572public Task<Stream> OpenReadTaskAsync(string address)
2579public Task<Stream> OpenReadTaskAsync(Uri address)
2582var tcs = new TaskCompletionSource<Stream>(address);
2603public Task<Stream> OpenWriteTaskAsync(string address)
2610public Task<Stream> OpenWriteTaskAsync(Uri address)
2617public Task<Stream> OpenWriteTaskAsync(string address, string method)
2624public Task<Stream> OpenWriteTaskAsync(Uri address, string method)
2627var tcs = new TaskCompletionSource<Stream>(address);
2983private Stream m_stream;
2986public WebClientWriteStream(Stream stream, WebRequest request, WebClient webClient) {
3112private Stream m_Result;
3113internal OpenReadCompletedEventArgs(Stream result, Exception exception, bool cancelled, object userToken) :
3117public Stream Result {
3128private Stream m_Result;
3129internal OpenWriteCompletedEventArgs(Stream result, Exception exception, bool cancelled, object userToken) :
3133public Stream Result {
services\monitoring\system\diagnosticts\AsyncStreamReader.cs (5)
32private Stream stream;
60internal AsyncStreamReader(Process process, Stream stream, UserCallBack callback, Encoding encoding)
69internal AsyncStreamReader(Process process, Stream stream, UserCallBack callback, Encoding encoding, int bufferSize)
79private void Init(Process process, Stream stream, UserCallBack callback, Encoding encoding, int bufferSize) {
129public virtual Stream BaseStream {
Base\MS\Internal\IO\Zip\ZipArchive.cs (4)
126internal static ZipArchive OpenOnStream(Stream stream, FileMode mode, FileAccess access, bool streaming)
451private ZipArchive(Stream archiveStream, FileMode mode, FileAccess access, bool streaming, bool ownStream)
524static private void ValidateModeAccessShareStreaming(Stream stream, FileMode mode, FileAccess access, FileShare share, bool streaming)
569static private void ValidateModeAccessStreamStreamingCombinations(Stream stream, FileAccess access, bool streaming)
Base\System\IO\Packaging\Package.cs (9)
224public static Package Open(Stream stream)
241public static Package Open(Stream stream, FileMode packageMode)
261public static Package Open(Stream stream, FileMode packageMode, FileAccess packageAccess)
1050internal static Package Open(Stream stream, FileMode packageMode, FileAccess packageAccess, bool streaming)
1062Stream ensuredStream = ValidateModeAndAccess(stream, packageMode, packageAccess);
1225private static Stream ValidateModeAndAccess(Stream s, FileMode mode, FileAccess access)
1497internal RestrictedStream(Stream stream, FileAccess access)
1718private Stream _stream;
Shared\MS\Internal\IO\Packaging\PackagingUtilities.cs (9)
114static internal void VerifyStreamReadArgs(Stream s, byte[] buffer, int offset, int count)
151static internal void VerifyStreamWriteArgs(Stream s, byte[] buffer, int offset, int count)
189internal static int ReliableRead(Stream stream, byte[] buffer, int offset, int count)
206internal static int ReliableRead(Stream stream, byte[] buffer, int offset, int requestedCount, int requiredCount)
300internal static long CopyStream(Stream sourceStream, Stream targetStream, long bytesToCopy, int bufferSize)
340internal static Stream CreateUserScopedIsolatedStorageFileStreamWithRandomName(int retryCount, out String fileName)
346Stream s = null;
732internal Stream GetStream(String fileName)