Ejemplo n.º 1
0
 public LzoCompressorStream(IDataProcessorStream inputStream, CompressorAlgorithm algorithm, int bufferSize)
 {
     this.inputStream = inputStream;
     this.currentPos  = 0;
     this.length      = 0;
     //this.compressorBufferSize = bufferSize; //1k buffer ; compression won't work well below 1k
     //tempBuffer = new byte[compressorBufferSize];
     internalOffset     = 0;
     compressedSize     = 0;
     gatherBuffer       = new byte[minBlockSize];
     currentGatherPos   = 0;
     this.BlockMetadata = new List <IFileBlockMetadata>();
 }
Ejemplo n.º 2
0
 public DecompressorStream(Stream inputStream, CompressorAlgorithm algorithm)
 {
     this.inputStream = inputStream;
     this.currentPos  = 0;
     this.length      = 0;
 }