Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Catalog · How the catalog works
Anything · Lazarus or Delphi
Random projectRandom project

Free-Pascal-port-of-LZ4-compressor-decompressor-

Free Pascal port of LZ4 compressor/decompressor

View on GitHub

Member rating

No ratings yet.

Sign in to rate this project.

README

lz4 — Free Pascal Port

LZ4 compression algorithm ported to Free Pascal.

Based on the C reference implementation (v 1.10.0) form https://github.com/lz4/lz4

Using as a library

Add Lz4Simple.pas to your uses

pascal
function LZ4(Uncompressed: AnsiString): AnsiString;
function UnLZ4(Compressed: AnsiString): AnsiString;
function LZ4CompressFile(const Infilename, Outfilename: String): Integer;
function LZ4DecompressFile(const Infilename, Outfilename: String): Integer;
function LZ4CompressStreams(Infile, Outfile: TStream): Integer;
function LZ4DecompressStreams(Infile, Outfile: TStream): Integer;

License

BSD-2