t_archive 0.1.0 copy "t_archive: ^0.1.0" to clipboard
t_archive: ^0.1.0 copied to clipboard

thancoder custom binary format file.

t_archive #

final tArchive = TArchive.createFiles([
    TArchiveFile.fromFile('/home/thancoder/Videos/【GMV】- BOSS B_TCH.mp4'),
  ]);
  // TArchive.createFiles([TArchiveFile('name', Uint8List(0))], config: {});

  // save
  tArchive.writeToFile(
    'savepath.bin',
    // coverImage: File('cover.png').readAsBytesSync(),
    onProgress: (name, progress) {
      print('$name - ${(progress * 100).toStringAsFixed(1)}%');
    },
  );

  //read
  final archive = await TArchive.readHeader('savepath.bin');
  print(archive.config);
  print(archive.mime);
  print(archive.version);
  print(archive.coverImage);
  print(archive.files);
  await TArchive.deleteFile('savepath.bin', filename: archive.files.first.name);
  print('deleted');
  archive.files.first.writeFile(
    'out.mp4',
    onProgress: (progress) {
      print('${(progress * 100).toStringAsFixed(1)}%');
    },
  );
0
likes
120
points
3
downloads

Publisher

unverified uploader

Weekly Downloads

thancoder custom binary format file.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on t_archive

Packages that implement t_archive