/FiniteStateEntropy

C# port of Finite State Entropy codec (https://github.com/Cyan4973/FiniteStateEntropy).

Primary LanguageC#MIT LicenseMIT

FiniteStateEntropy

C# port of Finite State Entropy codecs (https://github.com/Cyan4973/FiniteStateEntropy).

Example

Decompress

using FileStream fInput = File.OpenRead(@"C:\Data\input.dat.fse");
using FileStream fOutput = File.OpenWrite(@"C:\Data\output.dat");

using var fse = new FseStream(fInput, CompressionMode.Decompress, leaveOpen: true);

fse.CopyTo(fOutput);

Compress

using FileStream fInput = File.OpenRead(@"C:\Data\input.dat");
using FileStream fOutput = File.OpenWrite(@"C:\Data\output.dat.fse");

using var fse = new FseStream(fOutput, CompressionMode.Compress, leaveOpen: true);

fInput.CopyTo(fse);