Module read_buf

Source

Functionsยง

read_buf
Read a buffer of BUF_SIZE (the resulting Vec can be smaller); left_over is copied into the buffer at the start, then the remainder is attempted to be filled from input. Returns None if eof was reached (nothing could be read) and left_over is empty. Panics if left_over.len() >= BUF_SIZE`.