mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-06 02:48:43 +00:00
feat: paste creation, utilities, revert to gzip, grammar fixes etc
This commit is contained in:
@@ -21,6 +21,11 @@ namespace SharpbinV3.Services
|
||||
|
||||
return data;
|
||||
}
|
||||
public byte[] Compress(string data)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(data);
|
||||
return Compress(System.Text.Encoding.UTF8.GetBytes(data));
|
||||
}
|
||||
public byte[] Decompress(byte[] compressedData)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(compressedData);
|
||||
|
||||
Reference in New Issue
Block a user