fuchsia_fs::file

Function read_num_bytes

Source
pub async fn read_num_bytes(
    file: &FileProxy,
    num_bytes: u64,
) -> Result<Vec<u8>, ReadError>
Expand description

Attempts to read a number of bytes from the given file’s current offset. This function may return less data than expected.