lzma 1.0.1 copy "lzma: ^1.0.1" to clipboard
lzma: ^1.0.1 copied to clipboard

LZMA compression library written in pure dart. Use this library to compress and decompress using the LZMA algorithm.

package:lzma is a port of LZMA compression algorithm to Dart.

The source code is a manual translation from the original Java version found on the LZMA SDK.

How to use it? #

If you want to compress data then just call to the lzma.encode function, and for the reverse call lzma.decode:

import 'package:lzma/lzma.dart';

final input = <int>[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, /*...,*/];
final compressed = lzma.encode(input);
final decompressed = lzma.decode(compressed);

Limitations #

  • Output data size is limited to 32 bits.
11
likes
150
points
711
downloads

Publisher

unverified uploader

Weekly Downloads

LZMA compression library written in pure dart. Use this library to compress and decompress using the LZMA algorithm.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

fixnum

More

Packages that depend on lzma