Example #1
0
 public void writeLZ4NHStream(RootEntry root, Stream s)
 {
     using (var xFs = new Lz4CompressionStream(s, 1 << 18, Lz4Mode.HighCompression))
     {
         root.Write(xFs);
     }
 }
Example #2
0
 public void writeLZ4HStream(RootEntry root, Stream s)
 {
     using (var xFs = new LZ4Stream(s, LZ4StreamMode.Compress, LZ4StreamFlags.HighCompression))
     {
         root.Write(xFs);
     }
 }
Example #3
0
 public void writeGzipStream(RootEntry root, Stream s)
 {
     using (var xFs = new GZipStream(s, CompressionMode.Compress, true))
     {
         root.Write(xFs);
     }
 }
Example #4
0
 public void writeLZ4Stream(RootEntry root, Stream s)
 {
     using  (var xFs = new LZ4Stream(s, CompressionMode.Compress))
     {
         root.Write(xFs);
     }
 }
Example #5
0
 public void writeStream(RootEntry root, Stream s)
 {
     using (s)
     {
         root.Write(s);
     }
 }