Module dd_lib::io

source ·
Expand description

Reading, writing, and manipulating bytes.

In this module, we use the following type shorthands:

  • R is the [Reader]: for dd, this is either Stdin or a File
  • W is the [Writer]: for dd, this is either Stdout or a File
  • C is the Converter
  • E is the error output. This is always Stderr during normal operation (the type paramater exists to facilitate testing)

Modules

Converter converts a slice according to the conversion flags and conversion block size specified in super::opts
copy bytes from a Reader to a Writer, converting them according to a Converter
Reader reads from the specified file or stdin, according to the options specified in opts
Writer writes to the specified file or stdout, according to the options specified in opts