net\System\Net\Cache\_CacheStreams.cs (80)
72get {return m_HeadEOF? WrappedStream.CanRead: m_HeadStream.CanRead;}
86return WrappedStream.Length + (m_HeadEOF? m_HeadLength: m_HeadStream.Length);
92return WrappedStream.Position + (m_HeadEOF? m_HeadLength: m_HeadStream.Position);
131return WrappedStream.Read(buffer, offset, count);
139result = WrappedStream.Read(buffer, offset, count);
186count = WrappedStream.EndRead(transportResult);
195IAsyncResult ar = WrappedStream.BeginRead(userResult.Buffer, userResult.Offset, userResult.Count, m_ReadCallback, userResult);
199count = WrappedStream.EndRead(ar);
225return WrappedStream.BeginRead(buffer, offset, count, callback, state);
244return WrappedStream.BeginRead(buffer, offset, count, callback, state);
277return m_HeadEOF? WrappedStream.EndRead(asyncResult): m_HeadStream.EndRead(asyncResult);
319ICloseEx icloseEx = WrappedStream as ICloseEx;
324WrappedStream.Close();
336return WrappedStream.CanTimeout && m_HeadStream.CanTimeout;
342return (m_HeadEOF) ? WrappedStream.ReadTimeout : m_HeadStream.ReadTimeout;
345WrappedStream.ReadTimeout = m_HeadStream.ReadTimeout = value;
351return (m_HeadEOF) ? WrappedStream.WriteTimeout : m_HeadStream.WriteTimeout;
354WrappedStream.WriteTimeout = m_HeadStream.WriteTimeout = value;
388get {return WrappedStream.CanRead;}
402return WrappedStream.Length - m_BytesToSkip;
408return WrappedStream.Position - m_BytesToSkip;
453int bytes = WrappedStream.Read(tempBuffer, 0, (m_BytesToSkip < (long)tempBuffer.Length? (int)m_BytesToSkip: tempBuffer.Length));
463result = WrappedStream.Read(buffer, offset, count);
549userResult.Count = WrappedStream.EndRead(transportResult);
621transportResult = WrappedStream.BeginRead(userResult.Buffer, userResult.Offset, userResult.Count, m_ReadCallback, userResult);
679return WrappedStream.BeginRead(buffer, offset, count, callback, state);
688IAsyncResult result = WrappedStream.BeginRead(userResult.Buffer, userResult.Offset, userResult.Count, m_ReadCallback, userResult);
718int bytes = WrappedStream.EndRead(asyncResult);
785ICloseEx icloseEx = WrappedStream as ICloseEx;
790WrappedStream.Close();
818return WrappedStream.CanTimeout && m_ShadowStream.CanTimeout;
824return WrappedStream.ReadTimeout;
827WrappedStream.ReadTimeout = m_ShadowStream.ReadTimeout = value;
836WrappedStream.WriteTimeout = m_ShadowStream.WriteTimeout = value;
904get {return WrappedStream.CanRead;}
909get {return WrappedStream.CanSeek;}
913get {return WrappedStream.CanWrite;}
917get {return WrappedStream.Length;}
921get {return WrappedStream.Position;}
923set {WrappedStream.Position = value;}
927return WrappedStream.Seek(offset, origin);
931WrappedStream.SetLength(value);
935WrappedStream.Write(buffer, offset, count);
939return WrappedStream.BeginWrite(buffer, offset, count, callback, state);
943WrappedStream.EndWrite(asyncResult);
947WrappedStream.Flush();
951return WrappedStream.Read(buffer, offset, count);
955return WrappedStream.BeginRead(buffer, offset, count, callback, state);
959return WrappedStream.EndRead(asyncResult);
973return WrappedStream.CanTimeout;
979return WrappedStream.ReadTimeout;
982WrappedStream.ReadTimeout = value;
988return WrappedStream.WriteTimeout;
991WrappedStream.WriteTimeout = value;
1001ICloseEx icloseEx = WrappedStream as ICloseEx;
1007WrappedStream.Close();
1055if (WrappedStream.CanSeek) {
1056WrappedStream.Position = offset;
1066get {return WrappedStream.CanRead;}
1071get {return WrappedStream.CanSeek;}
1075get {return WrappedStream.CanWrite;}
1080long dummy = WrappedStream.Length;
1086get {return WrappedStream.Position-m_Offset;}
1093WrappedStream.Position = value;
1126m_Position=WrappedStream.Seek(offset, origin);
1138WrappedStream.Write(buffer, offset, count);
1146return WrappedStream.BeginWrite(buffer, offset, count, callback, state);
1150WrappedStream.EndWrite(asyncResult);
1151m_Position = WrappedStream.Position;
1155WrappedStream.Flush();
1165int result = WrappedStream.Read(buffer, offset, count);
1177return WrappedStream.BeginRead(buffer, offset, count, callback, state);
1181int result = WrappedStream.EndRead(asyncResult);
1197return WrappedStream.CanTimeout;
1203return WrappedStream.ReadTimeout;
1206WrappedStream.ReadTimeout = value;
1212return WrappedStream.WriteTimeout;
1215WrappedStream.WriteTimeout = value;
1227ICloseEx icloseEx = WrappedStream as ICloseEx;
1233WrappedStream.Close();