Expand description
A library for reading and writing PNA archives
This library provides utilities necessary to manage PNA archives abstracted over a reader or writer. Great strides are taken to ensure that an archive is never required to be fully resident in memory, and all objects provide largely a streaming interface to read bytes from.
Modules§
- PNA Prelude.
Structs§
- An object providing access to a PNA file. An instance of an Archive can be read and/or written.
- A 4-byte chunk type code.
- Compression level of each algorithm.
- A builder for creating a new NormalEntry.
- Reader for Entry data.
- Represents the entry information header that is expressed in the FHED chunk.
- A UTF-8 encoded entry name.
- Error of invalid EntryName.
- A structure representing the split Entry for archive splitting.
- A UTF-8 encoded entry reference.
- Error of invalid EntryReference.
- Entry extended attribute.
- Password hash algorithm.
- Metadata information about an entry.
- Entry that read from PNA archive.
- Permission struct represents an owner, group, and permissions for an entry.
- Represents a raw chunk
- Options for reading an entry.
- Builder for
ReadOptions. - An object providing writing to a solid mode PNA file. An instance of an SolidArchive can be written.
- A solid mode entry.
- A builder for creating a new solid Entry.
- Represents the entry information header that is expressed in the FHED chunk.
- Options for writing an entry.
- Builder for
WriteOptions.
Enums§
- ChunkType validation error.
- Cipher algorithm.
- Cipher mode of encryption algorithm.
- Compression method.
- Type of entry.
- Encryption algorithm.
- A NormalEntry or SolidEntry read from an archive.
Constants§
- Minimum required size in bytes to represent
Chunk. length: 4 bytes + chunk type: 4 bytes + data: 0 bytes + crc: 4 bytes - The magic number of Portable-Network-Archive
Traits§
- The smallest data unit in PNA.
- Archive entry.
Functions§
- Read archive as chunks
- Read chunks from archive slice
Type Aliases§
- Regular
Entry Deprecated Type alias of NormalEntry