This reads the entire file (identified by inode) into a Vec<u8>. It will be the underlying implementation for various parts of the public API in future commits, including as Ext4::read,
Ext4::read_to_string, and Ext4::read_link.
At some point in the future we'll probably want to add a streaming read as well for cases where you don't need the whole file loaded in memory at once.
This reads the entire file (identified by inode) into a
Vec<u8>
. It will be the underlying implementation for various parts of the public API in future commits, including asExt4::read
,Ext4::read_to_string
, andExt4::read_link
.At some point in the future we'll probably want to add a streaming read as well for cases where you don't need the whole file loaded in memory at once.