Example #1
0
 // Token: 0x06000C18 RID: 3096 RVA: 0x0006B980 File Offset: 0x00069B80
 public StreamOnReadableDataStorage(ReadableDataStorage baseStorage, long start, long end)
 {
     if (baseStorage != null)
     {
         baseStorage.AddRef();
         this.baseStorage = baseStorage;
     }
     this.start = start;
     this.end   = end;
 }
Example #2
0
        public override void Close()
        {
            if (storage != null)
            {
                storage.Release();
                storage = null;
            }

            base.Close();
        }
Example #3
0
 // Token: 0x06000C19 RID: 3097 RVA: 0x0006B9A6 File Offset: 0x00069BA6
 private StreamOnReadableDataStorage(ReadableDataStorage baseStorage, long start, long end, long position)
 {
     if (baseStorage != null)
     {
         baseStorage.AddRef();
         this.baseStorage = baseStorage;
     }
     this.start    = start;
     this.end      = end;
     this.position = position;
 }
Example #4
0
        public override void Close()
        {
            if (baseStorage != null)
            {
                baseStorage.Release();
                baseStorage = null;
            }

            disposed = true;
            base.Close();
        }
Example #5
0
        public StreamOnReadableDataStorage(ReadableDataStorage baseStorage, long start, long end)
        {
            InternalDebug.Assert(baseStorage != null || (start == 0 && end == 0));
            InternalDebug.Assert(start >= 0 && start <= end);

            if (baseStorage != null)
            {
                baseStorage.AddRef();
                this.baseStorage = baseStorage;
            }

            this.start = start;
            this.end   = end;
        }
Example #6
0
 private AutoPositionReadOnlyStream(AutoPositionReadOnlyStream original)
 {
     original.storage.AddRef();
     storage  = original.storage;
     position = original.position;
 }
Example #7
0
 public AutoPositionReadOnlyStream(Stream wrapped, bool ownsStream)
 {
     storage  = new ReadableDataStorageOnStream(wrapped, ownsStream);
     position = wrapped.Position;
 }