Crate smdiff_reader

Source
Expand description

This library is used to read the underlying smdiff format. It does not handle secondary decompression.

If you need a reader for secondary decompression, you can use the smdiff-decoder::reader module. It wraps this lib.

The main struct is the SectionReader. It reads a section at a time, and returns the ops and the header.

The building blocks of that reader are exposed for other users to build their own readers.

Structs§

Add
Add Op for the Reader
SectionIterator
A reader that will keep reading sections until it reaches the terminal section.

Functions§

read_op
Reads an operation from the reader at the given position.
read_ops_no_comp
Reads the operations from the reader at the current position. Cannot have secondary compression still applied.
read_section
Returns the ops and the output size. Cannot have secondary compression still applied.
read_section_header
Reads a section header from the reader at the current position.

Type Aliases§

Op
Op Type alias for the Readers Add type