Module dd_lib::io::copy

source ·
Expand description

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

Functions

The block [Mode][opts::Mode] 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.
fill the buffer with unwrapped elements from it until it has len cap
fill the buffer from it until and including the first item that matches want
The standard [Mode][opts::Mode] is a byte-for-byte copy.
The unblock [Mode][opts::Mode] 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.