Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

std: Implement LineWriter::write_vectored #67270

Merged
merged 1 commit into from
Dec 19, 2019

Commits on Dec 13, 2019

  1. std: Implement LineWriter::write_vectored

    This commit implements the `write_vectored` method of the `LineWriter`
    type. First discovered in bytecodealliance/wasmtime#629 the
    `write_vectored` method of `Stdout` bottoms out here but only ends up
    writing the first buffer due to the default implementation of
    `write_vectored`.
    
    Like `BufWriter`, however, `LineWriter` can have a non-default
    implementation of `write_vectored` which tries to preserve the
    vectored-ness as much as possible. Namely we can have a vectored write
    for everything before the newline and everything after the newline if
    all the stars align well.
    
    Also like `BufWriter`, though, special care is taken to ensure that
    whenever bytes are written we're sure to signal success since that
    represents a "commit" of writing bytes.
    alexcrichton committed Dec 13, 2019
    Configuration menu
    Copy the full SHA
    2fee28e View commit details
    Browse the repository at this point in the history