archive_io library Null safety
Classes
- Adler32
- A class to compute Adler-32 checksums.
- 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
- 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
- TarDecoder
- Decode a tar formatted buffer into an Archive object.
- TarEncoder
- Encode an Archive object into a tar formatted buffer.
- TarFile
- TarFileEncoder
- XZDecoder
- Decompress data with the xz format decoder.
- 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
Constants
- BIG_ENDIAN → const int
-
1
- LITTLE_ENDIAN → const int
-
0
Properties
- paxRecordRegexp → RegExp
-
final
- platformZLibDecoder → ZLibDecoderBase
-
read-only
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, {bool asyncWrite = false, 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.
Exceptions / Errors
- ArchiveException
- An exception thrown when there was a problem in the archive library.