// 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; }
public override void Close() { if (storage != null) { storage.Release(); storage = null; } base.Close(); }
// 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; }
public override void Close() { if (baseStorage != null) { baseStorage.Release(); baseStorage = null; } disposed = true; base.Close(); }
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; }
private AutoPositionReadOnlyStream(AutoPositionReadOnlyStream original) { original.storage.AddRef(); storage = original.storage; position = original.position; }
public AutoPositionReadOnlyStream(Stream wrapped, bool ownsStream) { storage = new ReadableDataStorageOnStream(wrapped, ownsStream); position = wrapped.Position; }