summaryrefslogtreecommitdiff
path: root/src/SMAPI.Web/Framework/Compression/IGzipHelper.cs
blob: ef2d5696a81385ecc47631df06bab099d5fb40ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
using System.Diagnostics.CodeAnalysis;

namespace StardewModdingAPI.Web.Framework.Compression
{
    /// <summary>Handles GZip compression logic.</summary>
    internal interface IGzipHelper
    {
        /*********
        ** Methods
        *********/
        /// <summary>Compress a string.</summary>
        /// <param name="text">The text to compress.</param>
        string CompressString(string text);

        /// <summary>Decompress a string.</summary>
        /// <param name="rawText">The compressed text.</param>
        [return: NotNullIfNotNull("rawText")]
        string? DecompressString(string? rawText);
    }
}