foundry_common::io::stdin

Function read_bytes

Source
pub fn read_bytes(read_line: bool) -> Result<Vec<u8>>
Expand description

Reads bytes from stdin.

If read_line is true, read up to the first newline excluded (the 0xA byte).