Esempio n. 1
0
        /// <inheritdoc/>
        protected override async Task BaseDecompressAsync(Stream inputStream, Stream outputStream, CancellationToken cancellationToken = default)
        {
            using var gZipStream = new ZstandardStream(inputStream, CompressionMode.Decompress, true);
            await gZipStream.CopyToAsync(outputStream, DefaultBufferSize, cancellationToken).ConfigureAwait(false);

            await outputStream.FlushAsync(cancellationToken).ConfigureAwait(false);

            await gZipStream.FlushAsync(cancellationToken).ConfigureAwait(false);
        }