Skip to main content

read_with_padding

Function read_with_padding 

Source
pub fn read_with_padding(file: &mut File, buffer: &mut [u8]) -> Result<()>
Expand description

Reads the file into the buffer until the buffer is full or the EOF is reached.

If it reaches the EOF before the buffer is full pad the buffer with zeros.