Module io

Module io 

Source

Structs§

DecompressReader
GlobMatcher
Ignition
Initrd
KargsEditor
LimitReader
LimitWriter
PeekReader
Sha256Digest
TeeReader
Reader wrapper that copies data to a writer as a side effect
VerifyReader
WriteHasher
XzStreamDecoder
ZstdStreamDecoder

Enums§

IgnitionHash
Ignition-style message digests
VerifyKeys

Constants§

BUFFER_SIZE

Functions§

bincoder
Provides uniform bincode options for all our serialization operations.
copy_exactly_n
This is like copy_n() but errors if the number of bytes copied is less than expected.
copy_n
This is like std::io:copy(), but limits the number of bytes copied over. The Read trait has take(), but that takes ownership of the reader. We also take a buf to avoid re-initializing a block each time (std::io::copy() gets around this by using MaybeUninit, but that requires using nightly and unsafe functions).
is_zstd_magic
visit_bls_entry
Calls a function on the latest (default) BLS entry and optionally updates it if the function returns new content. Errors out if no BLS entry was found.
visit_bls_entry_options
Wrapper around visit_bls_entry to specifically visit just the BLS entry’s options line and optionally update it if the function returns new content. Errors out if none or more than one options field was found. Returns true if BLS content was modified.