public DscBlockStream(DscIOStream dscStream, DscCompressionScheme scheme) { this.m_dscStream = dscStream; this.m_compressionScheme = scheme; this.m_isClosed = false; this.m_compressStream = null; }
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; } }
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; }