Skip to content

Add read_full to std::io::ReadExt #23174

Closed
@cskr

Description

@cskr

Since the read function of std::io::Read may read less than the length of the buffer passed to it, adding a function named read_full which calls read in a loop until the buffer is filled can be useful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions