Module dd_lib::io::copy

source ·
Expand description

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

Functions

Treats the input as a sequence of newline or end-of-file terminated variable length records independent of input and output block boundaries. Any trailing newline char- acter is discarded. Each input record is converted to a fixed length output record where the length is specified by the cbs operand. Input records shorter than the conversion record size are padded with spaces. Input records longer than the conver- sion record size are truncated. The number of truncated input records, if any, are reported to the standard error output at the completion of the copy.
the standard byte-for-byte copy
Treats the input as a sequence of fixed length records independent of input and output block boundaries. The length of the input records is specified by the cbs op- erand. Any trailing space characters are discarded and a newline character is appended.