Expand description
Reading, writing, and manipulating bytes.
In this module, we use the following type shorthands:
- R is the
Reader: for dd, this is eitherStdinor 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
Converterencodes 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 inoptsA converter modifies the blocks read from aReaderbefore they are written to aWriter- ErrHandler
ErrHandlerhandles errors, writing errors and/or perodic reports to the speicifed file or stderr. seeStatusLevelandNOERRORErrHandler handles errors and progress information by writing to it’s internal writer.- Reader
Readerreads from the specified file or stdin, according to the options specified inoptsReaders read blocks from the specified file or Stdin- Writer
Writerwrites to the specified file or stdout, according to the options specified inoptsWriters write to the specified File or Stdout
Traits§
- Convert
Slice - A convertslice can modify a slice of
Tin-place, and provides helper methods to create modified copies.