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

outdated

LZMA compression library.

example/example.dart

import 'dart:async';
import 'dart:io';

import 'package:lzma/lzma.dart';

Future main(List<String> args) async {
  if (args.length != 2) {
    // ignore: avoid_print
    print('Usage: compress input output');
    return;
  }

  final inFile = File(args[0]);
  final outFile = File(args[1]);

  final encoded = lzma.encode(await inFile.readAsBytes());
  await outFile.writeAsBytes(encoded);
}
11
likes
65
points
695
downloads

Publisher

unverified uploader

Weekly Downloads

LZMA compression library.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

fixnum

More

Packages that depend on lzma