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

thancoder custom binary format file.

t_archive #

final tArchive = TArchive.createFiles(
  [TArchiveFile.fromFile('')],
  config: {},
  mime: 'custom mime type',
);
// TArchive.createFiles([TArchiveFile('name', Uint8List(0))], config: {});

//save
tArchive.writeToFile(
  'savepath.bin',
  coverImage: File('cover.png').readAsBytesSync(),
  onProgress: (name, progress) {},
);

//read
final archive = await TArchive.readArchive(
  'savepath.bin',
  mime: 'check custom mime',
);
print(archive.config);
print(archive.fileMetaList);
print(archive.fileList);
if (archive.coverImage != null) {
  //you can save
  File('out-cover.png').writeAsBytesSync(archive.coverImage!);
}
0
likes
110
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