< Summary

Information
Class: System.IO.Compression.ZstandardDecompressionOptions
Assembly: System.IO.Compression
File(s): D:\runner\runtime\src\libraries\System.IO.Compression\src\System\IO\Compression\Zstandard\ZstandardDecompressionOptions.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 10
Coverable lines: 10
Total lines: 38
Line coverage: 0%
Branch coverage
0%
Covered branches: 0
Total branches: 2
Branch coverage: 0%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

File(s)

D:\runner\runtime\src\libraries\System.IO.Compression\src\System\IO\Compression\Zstandard\ZstandardDecompressionOptions.cs

#LineLine coverage
 1// Licensed to the .NET Foundation under one or more agreements.
 2// The .NET Foundation licenses this file to you under the MIT license.
 3
 4namespace System.IO.Compression
 5{
 6    /// <summary>Provides decompression options to be used with Zstandard decompression.</summary>
 7    [System.Runtime.Versioning.UnsupportedOSPlatform("browser")]
 8    [System.Runtime.Versioning.UnsupportedOSPlatform("wasi")]
 9    public sealed class ZstandardDecompressionOptions
 10    {
 11
 12        /// <summary>Gets or sets the maximum allowed base-2 logarithm of the window size when decompressing payloads.</
 13        /// <value>The maximum allowed base-2 logarithm of the window size for decompression.</value>
 14        /// <remarks>
 15        /// The valid range is from <see cref="ZstandardCompressionOptions.MinWindowLog2"/> to <see cref="ZstandardCompr
 16        /// Value 0 indicates the implementation-defined default window size.
 17        /// </remarks>
 18        /// <exception cref="ArgumentOutOfRangeException">The value is not 0 and is not between <see cref="ZstandardComp
 19        public int MaxWindowLog2
 20        {
 021            get;
 22            set
 023            {
 024                if (value != 0)
 025                {
 026                    ArgumentOutOfRangeException.ThrowIfLessThan(value, ZstandardUtils.WindowLog_Min, nameof(value));
 027                    ArgumentOutOfRangeException.ThrowIfGreaterThan(value, ZstandardUtils.WindowLog_Max, nameof(value));
 028                }
 29
 030                field = value;
 031            }
 32        }
 33
 34        /// <summary>Gets or sets the dictionary to use for decompression.</summary>
 35        /// <value>The decompression dictionary, or <see langword="null"/> if no dictionary is used.</value>
 036        public ZstandardDictionary? Dictionary { get; set; }
 37    }
 38}