Intermediate
Rust
Q72 / 100
What is the BufReader and BufWriter purpose in Rust?
Correct! Well done.
Incorrect.
The correct answer is B) Wrappers adding buffering to any Reader/Writer, reducing the number of system calls for small reads/writes
B
Correct Answer
Wrappers adding buffering to any Reader/Writer, reducing the number of system calls for small reads/writes
Explanation
BufReader<R> buffers reads from R into a 8KB buffer by default. Instead of one syscall per byte, you get one syscall per 8KB. Use flush() on BufWriter before dropping.
Progress
72/100