[][src]Module libcoreinst::io

Structs

DecompressReader
LimitReader

Enums

IgnitionHash

Ignition-style message digests

Constants

BUFFER_SIZE

Functions

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).