de83d7dd19
Previously, `BufWriter::write` would just return an `std::io::OtherIoError` if someone attempted to write past the end of the wrapped buffer. This pull request changes the error to support partial writes and return a `std::io::ShortWrite`, or an `io::io::EndOfFile` if it's been fully exhausted. I've also optimized away a bounds check inside `BufWriter::write`, which should help shave off some nanoseconds in an inner loops. |
||
---|---|---|
.. | ||
collections | ||
comm | ||
io | ||
num | ||
path | ||
rand | ||
rt | ||
sync | ||
sys | ||
thread_local | ||
time | ||
ascii.rs | ||
bitflags.rs | ||
c_vec.rs | ||
dynamic_lib.rs | ||
error.rs | ||
failure.rs | ||
fmt.rs | ||
hash.rs | ||
lib.rs | ||
macros.rs | ||
os.rs | ||
prelude.rs | ||
rtdeps.rs | ||
task.rs |