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

Implement read_buf for a few more types #108326

Merged
merged 1 commit into from
Mar 21, 2023
Merged

Commits on Mar 6, 2023

  1. Implement read_buf for a few more types

    Implement read_buf for TcpStream, Stdin, StdinLock, ChildStdout,
    ChildStderr (and internally for AnonPipe, Handle, Socket), so
    that it skips buffer initialization.
    
    The other provided methods like read_to_string and read_to_end are
    implemented in terms of read_buf and so benefit from the optimization
    as well.
    
    This commit also implements read_vectored and is_read_vectored where
    applicable.
    tmiasko committed Mar 6, 2023
    Configuration menu
    Copy the full SHA
    defa245 View commit details
    Browse the repository at this point in the history