zstandard_cli 1.3.27 copy "zstandard_cli: ^1.3.27" to clipboard
zstandard_cli: ^1.3.27 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
130
points
58
downloads
screenshot

Publisher

verified publisherlandamessenger.com

Weekly Downloads

CLI implementation of zstandard. For desktops.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

ffi, path, platform

More

Packages that depend on zstandard_cli