Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Treatment ioToString

cicd/data::ioToString


Inputs

⇥ stdio: Stream<byte>

Outputs

↦ lines: Stream<string>


Convert a byte stream from a process stdio into a stream of text lines.

Decodes stdio as UTF-8, splits on newlines, and trims trailing whitespace from each line, emitting them through lines.