Skip to content

yigolden/FiniteStateEntropy

Repository files navigation

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);

Releases

No releases published

Packages

No packages published

Languages