Expand description
Reading, writing, and manipulating bytes.
In this module, we use the following type shorthands:
- R is the
Reader
: for dd, this is eitherStdin
or aFile
- W is the
Writer
: for dd, this is either std::io::StdoutLock or aFile
- C is a
ConvertSlice
, which modifies a slice of bytes in-place. During operation, this is always aConverter
- E is the
ErrHandler
. During operation, this is std::io::StderrLock.
Modules§
Structs§
- Converter
Converter
encodes a slice to the specified encoding, changes the case (if applicable), and/or swaps pairs of bytes, according to the conversion flags and conversion block size specified inopts
A converter modifies the blocks read from aReader
before they are written to aWriter
- ErrHandler
ErrHandler
handles errors, writing errors and/or perodic reports to the speicifed file or stderr. seeStatusLevel
andNOERROR
ErrHandler handles errors and progress information by writing to it’s internal writer.- Reader
Reader
reads from the specified file or stdin, according to the options specified inopts
Readers read blocks from the specified file or Stdin- Writer
Writer
writes to the specified file or stdout, according to the options specified inopts
Writers write to the specified File or Stdout
Traits§
- Convert
Slice - A convertslice can modify a slice of
T
in-place, and provides helper methods to create modified copies.