Module dd_lib::io

source ·
Expand description

Reading, writing, and manipulating bytes.

In this module, we use the following type shorthands:

Modules

copy bytes from a Reader to a Writer converting them according to a Converter

Structs

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 in opts A converter modifies the blocks read from a Reader before they are written to a Writer
ErrHandler handles errors, writing errors and/or perodic reports to the speicifed file or stderr. see [StatusLevel] and [NOERROR][CFlag] ErrHandler handles errors and progress information by writing to it’s internal writer.
Reader reads from the specified file or stdin, according to the options specified in opts Readers read blocks from the specified file or Stdin
Writer writes to the specified file or stdout, according to the options specified in opts Writers write to the specified File or Stdout

Traits

A convertslice can modify a slice of T in-place, and provides helper methods to create modified copies.