zstandard_cli 1.3.21 copy "zstandard_cli: ^1.3.21" to clipboard
zstandard_cli: ^1.3.21 copied to clipboard

CLI implementation of zstandard. For desktops.

example/zstandard_cli_example.dart

import 'dart:typed_data';

import 'package:zstandard_cli/zstandard_cli.dart';

void main() async {
  var cli = ZstandardCLI();

  final originalData = Uint8List.fromList([
    10,
    20,
    30,
    10,
    20,
    30,
    10,
    20,
    30,
    0,
    20,
    30,
    10,
    20,
    30,
    10,
    20,
    30,
    10,
    20,
    30,
    10,
    20,
    30,
    10,
    20,
    30,
    0,
    20,
    30,
    10,
    20,
    30,
    10,
    20,
    30,
    10,
    20,
    30,
    10,
    20,
    30,
    10,
    20,
    30,
    0,
    20,
    30,
    10,
    20,
    30,
    10,
    20,
    30
  ]);
  print('originalData: ${originalData.length}');

  final compressed = await cli.compress(originalData, compressionLevel: 3);
  print('compressed: ${compressed?.length}');

  final decompressed = await cli.decompress(compressed ?? Uint8List(0));
  print('decompressed: ${decompressed?.length}');
}
1
likes
0
points
42
downloads

Publisher

verified publisherlandamessenger.com

Weekly Downloads

CLI implementation of zstandard. For desktops.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

ffi, path, platform

More

Packages that depend on zstandard_cli