Crate zelzip_util

Source
Expand description

Miscellaneous code shared for all the crates inside the ZEL.ZIP project.

Has partial support for no_std mode by disabling the default std feature flag. Extra suport for “alloc-compatible” no_std environments is available by enabling the alloc feature flag.

Macros§

read_exact
Macro that creates a local buffer slice variable to store some arbitraty data from a std::io::Read.
read_string
Macro that creates an string (null-terminated) of a fixed sized from a stream. a std::io::Read.

Structs§

AesCbcStream
Stream of AES-128 encrypted bytes.
RecallView
Like View but can remember the original position of the stream and automatically put it back to its correct place.
StreamPin
Wrapper for a stream (Seek and Write and/or Read) that stores the position when the pin was created and allow to do some operations around that value.
View
Create a bounded limited view of a stream (Seek with Read and/or Write).

Traits§

ReadEx
Extension trait of Read with useful miscellaneous operations.
StringEx
Extension trait of String with useful miscellaneous operations.
WriteEx
Extension trait of Write with useful miscellaneous operations.

Functions§

align_to_boundary
Align a value to the next multiple of the given boundary.

Type Aliases§

Aes128CbcDec
Decryptor of AES-128 encrypted bytes.