internal RangeStream (Stream parentStream, long offset, long size): base() {
m_ParentStream = parentStream;
m_Offset = offset;
m_Size = size;
if (m_ParentStream.CanSeek) {
m_ParentStream.Position = offset;
m_Position = offset;
}
else {
// for now we expect a FileStream that is seekable.
throw new NotSupportedException(SR.GetString(SR.net_cache_non_seekable_stream_not_supported));
}
}