/// <summary>
 /// Initializes a new instance of the <see cref="ZlibCompressionStream" /> class.
 /// </summary>
 /// <param name="targetStream">The target stream.</param>
 /// <param name="writeBuffer">The write buffer.</param>
 /// <param name="compressionBuffer">The compression buffer.</param>
 /// <param name="closeStream">The close stream.</param>
 public RleCompressionStream(Stream targetStream, byte[] writeBuffer, bool closeStream = false)
 {
     m_closeStream    = closeStream;
     m_targetStream   = targetStream;
     m_writeBuffer    = writeBuffer;
     m_implementation = new T();
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ZlibDecompressionStream" /> class.
 /// </summary>
 /// <param name="sourceStream">The source stream.</param>
 /// <param name="compression">The compression.</param>
 /// <param name="closeStream">The close stream.</param>
 public RleDecompressionStream(Stream sourceStream, bool closeStream = false)
 {
     m_closeStream    = closeStream;
     m_targetStream   = sourceStream;
     m_implementation = new T();
     Fill();
 }