archive_io library
Classes
- AbstractFileHandle
- Adler32
- A class to compute Adler-32 checksums.
- Aes
- AesCipherUtil
- AesHeader
- Archive
- A collection of files
- ArchiveFile
- A file contained in an Archive.
- Bz2BitReader
- Bz2BitWriter
- BZip2
- BZip2Decoder
- Decompress bzip2 compressed data. Derived from libbzip2 (http://www.bzip.org).
- BZip2Encoder
- Compress data using the BZip2 format. Derived from libbzip2 (http://www.bzip.org).
- Crc32
- A class to compute Crc-32 checksums.
- Deflate
- FileBuffer
- FileHandle
- GZipDecoder
- Decompress data with the gzip format decoder.
- GZipEncoder
- HuffmanTable
- Build huffman table from length list.
- Inflate
- InputFileStream
- InputStream
- A buffer that can be read as a stream of bytes
- InputStreamBase
- MemPtr
- A helper class to work with List and TypedData in a way similar to pointers in C.
- OutputFileStream
- OutputStream
- OutputStreamBase
- RamFileData
- RamFileHandle
- TarDecoder
- Decode a tar formatted buffer into an Archive object.
- TarEncoder
- Encode an Archive object into a tar formatted buffer.
- TarFile
- TarFileEncoder
- Uint8ListEquality
- XZDecoder
- Decompress data with the xz format decoder.
- XZEncoder
- Compress data using the xz format encoder. This encoder only currently supports uncompressed data.
- ZipDecoder
- Decode a zip formatted buffer into an Archive object.
- ZipDirectory
- ZipEncoder
- Encode an Archive object into a Zip formatted buffer.
- ZipFile
- ZipFileEncoder
- ZipFileHeader
- ZLibDecoder
- Decompress data with the zlib format decoder.
- ZLibDecoderBase
- Decompress data with the zlib format decoder.
- ZLibEncoder
Enums
- AbstractFileOpenMode
- XZCheck
- Checksum used for compressed data.
Constants
- BIG_ENDIAN → const int
- LITTLE_ENDIAN → const int
Properties
- paxRecordRegexp → RegExp
-
final
- platformZLibDecoder → ZLibDecoderBase
-
no setter
Functions
-
CRC32(
int crc, int b) → int - Get the CRC-32 checksum of the given int.
-
createArchiveFromDirectory(
Directory dir, {bool includeDirName = true}) → Archive -
extractArchiveToDisk(
Archive archive, String outputPath, {int? bufferSize}) → Future< void> -
extractArchiveToDiskAsync(
Archive archive, String outputPath, {bool asyncWrite = false, int? bufferSize}) → Future< void> -
extractArchiveToDiskSync(
Archive archive, String outputPath, {int? bufferSize}) → void -
extractFileToDisk(
String inputPath, String outputPath, {String? password, bool asyncWrite = false, int? bufferSize}) → Future< void> -
getAdler32(
List< int> array, [int adler = 1]) → int -
Get the Adler-32 checksum for the given array. You can append bytes to an
already computed adler checksum by specifying the previous
adler
value. -
getCrc32(
List< int> array, [int crc = 0]) → int -
Get the CRC-32 checksum of the given array. You can append bytes to an
already computed crc by specifying the previous
crc
value. -
getCrc64(
List< int> array, [int crc = 0]) → int -
inflateBuffer(
List< int> array) → List<int> ? -
isCrc64Supported(
) → bool -
isWithinOutputPath(
String outputDir, String filePath) → bool - Ensure filePath is contained in the outputDir folder, to make sure archives aren't trying to write to some system path.
-
useNativeZLib(
) → bool
Exceptions / Errors
- ArchiveException
- An exception thrown when there was a problem in the archive library.