You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// FIXME: this exposes uninitialized bytes to a generic R type
// this is fine for R=File which never reads these bytes,
// but user-defined types might.
// The standard library pushes zeros to `Vec<u8>` for that reason.
unsafe {
tendril.push_uninitialized(BUFFER_SIZE);
}```
See also #4.
This seems icky, no? Couldn't one fix this with different code paths for R=File and any other R=io::Read?
The text was updated successfully, but these errors were encountered:
The code:
The text was updated successfully, but these errors were encountered: