Expand description
Multi-Stream File - Compressed
This crate allows reading and writing PDZ/MSFZ files. PDZ/MSFZ files are similar to PDB/MSF files. They contain a set of streams, which are indexed by number. Each stream is a sequence of bytes, similar to an ordinary file.
See the MSFZ Container Specification
Structs§
- Chunk
Entry - Describes one compressed chunk.
- Fragment
- Describes a region within a stream.
- Fragment
Location - Represents the location of a fragment, either compressed or uncompressed.
- Msfz
- Reads MSFZ files.
- Msfz
File Header - Describes the header at the start of the MSFZ file.
- Msfz
Finish Options - Defines options for finishing an MSFZ file.
- Msfz
Writer - Allows writing a new MSFZ file.
- Stream
Reader - Allows reading a stream using the
Read,Seek, andReadAttraits. - Stream
Writer - Allows writing data to a stream.
- Summary
- Describes the results of writing an MSFZ file.
Enums§
- Compression
- Specifies the compression algorithms that are supported by this library.
- Stream
Data - Contains the contents of an entire stream.
Constants§
- COMPRESSION_
DEFLATE - Identifies the
Deflatecompression algorithm. - COMPRESSION_
NONE - Indicates that no compression is used.
- COMPRESSION_
ZSTD - Identifies the
Zstdcompression algorithm. - DEFAULT_
CHUNK_ THRESHOLD - The default threshold for compressing a chunk of data.
- MAX_
CHUNK_ SIZE - The maximum value for the uncompressed chunk size threshold.
- MAX_
UNCOMPRESSED_ FILE_ OFFSET - This is the maximum file offset where an uncompressed fragment be be stored.
- MIN_
CHUNK_ SIZE - The minimum value for the uncompressed chunk size threshold.
- MIN_
FILE_ SIZE_ 16K - This is the minimum file size that is guaranteed to avoid triggering a bug in the first version of the PDZ decoder compiled into DIA (and other MSVC-derived tools).
- MSFZ_
FILE_ SIGNATURE - The signature of a MSFZ/PDZ file.
- MSFZ_
FILE_ VERSION_ V0 - The current version of the PDZ specification being developed.
- NIL_
STREAM_ SIZE - The special value used for stream size to indicate a nil stream.
Functions§
- is_
header_ msfz - Checks whether the header of a file appears to be a valid MSFZ/PDZ file.