示例#1
0
 public CodingDataStorage(Internal.DataStorage storage, long start, long end, ContentTransferEncoding cte, bool encode)
 {
     storage.AddRef();
     this.storage = storage;
     this.start = start;
     this.end = end;
     this.cte = cte;
     this.encode = encode;
 }
示例#2
0
 protected override void Dispose(bool disposing)
 {
     if (disposing && !this.IsDisposed && storage != null) {
         storage.Release();
         storage = null;
     }
     base.Dispose(disposing);
 }