Ejemplo n.º 1
0
        public Task Decompress(CompressorArg Compressor, CompressedBytesArg CompressedSize)
        {
            using var inputStream  = new MemoryStream(CompressedSize.CompressedBytes);
            using var outputStream = new MemoryStream();

            return(Compressor.Compressor.DecompressAsync(inputStream, outputStream));
        }
Ejemplo n.º 2
0
        public void Compress(CompressorArg Compressor)
        {
            using var inputStream  = new MemoryStream(ObjectBytes);
            using var outputStream = new MemoryStream();

            Compressor.Compressor.Compress(inputStream, outputStream);
        }
Ejemplo n.º 3
0
        public Task Compress(CompressorArg Compressor)
        {
            using var inputStream  = new MemoryStream(ObjectBytes);
            using var outputStream = new MemoryStream();

            return(Compressor.Compressor.CompressAsync(inputStream, outputStream));
        }
        public Task Compress(CompressorArg Compressor, CompressedArg CompressionRatio)
        {
            using var inputStream  = new MemoryStream(OriginalBytes);
            using var outputStream = new MemoryStream();

            return(Compressor.Compressor.CompressAsync(inputStream, outputStream));
        }
Ejemplo n.º 5
0
        public void Decompress(CompressorArg Compressor, CompressedBytesArg CompressedSize)
        {
            using var inputStream  = new MemoryStream(CompressedSize.CompressedBytes);
            using var outputStream = new MemoryStream();

            Compressor.Compressor.Decompress(inputStream, outputStream);
        }
Ejemplo n.º 6
0
        public void Compress(CompressorArg Compressor, CompressedArg CompressionRatio)
        {
            using var inputStream  = new MemoryStream(OriginalBytes);
            using var outputStream = new MemoryStream();

            Compressor.Compressor.Compress(inputStream, outputStream);
        }
Ejemplo n.º 7
0
        public void CompressAndDecompress(CompressorArg Compressor)
        {
            using var inputStream  = new MemoryStream(ObjectBytes);
            using var outputStream = new MemoryStream();

            Compressor.Compressor.Compress(inputStream, outputStream);
            var compressedBytes = outputStream.ToArray();

            using var inputStream2  = new MemoryStream(compressedBytes);
            using var outputStream2 = new MemoryStream();

            Compressor.Compressor.Decompress(inputStream2, outputStream2);
        }
Ejemplo n.º 8
0
        public void CompressAndDecompress(CompressorArg Compressor, CompressedArg CompressionRatio)
        {
            using var inputStream  = new MemoryStream(OriginalBytes);
            using var outputStream = new MemoryStream();

            Compressor.Compressor.Compress(inputStream, outputStream);
            var compressedBytes = outputStream.ToArray();

            using var inputStream2  = new MemoryStream(compressedBytes);
            using var outputStream2 = new MemoryStream();

            Compressor.Compressor.Decompress(inputStream2, outputStream2);
        }
Ejemplo n.º 9
0
 public void Compress(CompressorArg Compressor, CompressedArg CompressionRatio)
 {
     Compressor.Compressor.Compress(OriginalBytes);
 }
Ejemplo n.º 10
0
        public void CompressAndDecompress(CompressorArg Compressor, CompressedArg CompressionRatio)
        {
            var compressedBytes = Compressor.Compressor.Compress(OriginalBytes);

            Compressor.Compressor.Decompress(compressedBytes);
        }
Ejemplo n.º 11
0
 public void Decompress(CompressorArg Compressor, CompressedArg CompressionRatio)
 {
     Compressor.Compressor.Decompress(CompressionRatio.CompressedBytes);
 }
Ejemplo n.º 12
0
 public void Compress(CompressorArg Compressor)
 {
     Compressor.Compressor.Compress(ObjectBytes);
 }
Ejemplo n.º 13
0
        public void CompressAndDecompress(CompressorArg Compressor)
        {
            var compressedBytes = Compressor.Compressor.Compress(ObjectBytes);

            Compressor.Compressor.Decompress(compressedBytes);
        }
Ejemplo n.º 14
0
 public void Decompress(CompressorArg Compressor, CompressedBytesArg CompressedSize)
 {
     Compressor.Compressor.Decompress(CompressedSize.CompressedBytes);
 }