Beispiel #1
0
 public DscBlockStream(DscIOStream dscStream, DscCompressionScheme scheme)
 {
     this.m_dscStream = dscStream;
     this.m_compressionScheme = scheme;
     this.m_isClosed = false;
     this.m_compressStream = null;
 }
Beispiel #2
0
 public DscBlockStream(DscIOStream dscStream, DscCompressionScheme scheme)
 {
     this.m_dscStream         = dscStream;
     this.m_compressionScheme = scheme;
     this.m_isClosed          = false;
     this.m_compressStream    = null;
 }
Beispiel #3
0
 internal override void Close()
 {
     if (!this.m_isClosed)
     {
         this.m_isClosed = true;
         if (this.m_compressStream != null)
         {
             this.m_compressStream.Close();
         }
         this.m_dscStream.Close();
         this.m_compressStream = null;
         this.m_dscStream      = null;
     }
 }
Beispiel #4
0
 private void Initialize(string filePath, FileMode mode, FileAccess access, DscCompressionScheme scheme)
 {
     try
     {
         this.m_dscStream = new DscIOStream(filePath, access, mode, scheme);
     }
     catch (Exception e)
     {
         throw new DryadLinqException(HpcLinqErrorCode.FailedToCreateStream,
                                      String.Format(SR.FailedToCreateStream, filePath), e);
     }
     this.m_isClosed          = false;
     this.m_compressionScheme = scheme;
     this.m_compressStream    = null;
 }
Beispiel #5
0
 internal override void Close()
 {
     if (!this.m_isClosed)
     {
         this.m_isClosed = true;
         if (this.m_compressStream != null)
         {
             this.m_compressStream.Close();
         }
         this.m_dscStream.Close();
         this.m_compressStream = null;
         this.m_dscStream = null;
     }
 }
Beispiel #6
0
 private void Initialize(string filePath, FileMode mode, FileAccess access, DscCompressionScheme scheme)
 {
     try
     {
         this.m_dscStream = new DscIOStream(filePath, access, mode, scheme);
     }
     catch (Exception e)
     {
         throw new DryadLinqException(HpcLinqErrorCode.FailedToCreateStream,
                                    String.Format(SR.FailedToCreateStream, filePath), e);
     }
     this.m_isClosed = false;
     this.m_compressionScheme = scheme;
     this.m_compressStream = null;
 }