Commit 6bb1daae authored by 只敲代码不玩耍,聪明baka也变傻ᗜˬᗜ's avatar 只敲代码不玩耍,聪明baka也变傻ᗜˬᗜ :man_dancing_tone1:
Browse files

refactor: rename readall_at to readall and introduce readrest_at for clarity

Showing with 5 additions and 1 deletion
+5 -1
......@@ -90,7 +90,11 @@ pub trait IInode: DowncastSync + Send + Sync {
Err(FileSystemError::Unimplemented)
}
fn readall_at(&self, offset: usize) -> FileSystemResult<Vec<u8>> {
fn readall(&self) -> FileSystemResult<Vec<u8>> {
self.readrest_at(0)
}
fn readrest_at(&self, offset: usize) -> FileSystemResult<Vec<u8>> {
self.readvec_at(offset, usize::MAX)
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment