예제 #1
0
 /// <summary>   Initializes a new instance of the QuickLZ class. </summary>
 /// <param name="level">    The level. </param>
 /// <param name="stream">   (optional) Use streaming mode </param>
 public QuickLZ(int level, bool stream = false)
 {
     _dll = GetDll(level, stream);
     _stateCompress = new byte[_dll.GetSetting(1)];
     _stateDecompress = Streaming ? new byte[_dll.GetSetting(2)] : _stateCompress;
 }
예제 #2
0
 /// <summary>   Initializes a new instance of the QuickLZ class. </summary>
 /// <param name="level">    The level. </param>
 /// <param name="stream">   (optional) Use streaming mode </param>
 public QuickLZ(int level, bool stream = false)
 {
     _dll             = GetDll(level, stream);
     _stateCompress   = new byte[_dll.GetSetting(1)];
     _stateDecompress = Streaming ? new byte[_dll.GetSetting(2)] : _stateCompress;
 }