Skip to main content

Crate decayfmt

Crate decayfmt 

Source
Expand description

decayfmt: a file format where decay is a first-class property.

Every open corrupts the payload on disk by an amount taken from the filename. The crate exposes the whole format: the typed error model (error), the binary header and filename convention ([format]), the corruption algorithm (corrupt), and the two flows built on them, encode and open. Images, text, and audio are supported.

Modulesยง

corrupt
Corruption algorithms for image, text, and audio payloads.
encode
Encode a source file into a decayfmt file.
error
All error types for decayfmt.
format
The decayfmt format definition: the binary header and the filename convention.
open
Open a decayfmt file: corrupt it in place on disk, then display it.