Large/small file I/O test passed.

This commit is contained in:
Yifan Wu 2020-12-19 19:14:31 +08:00
parent 8713046a4a
commit 5787214ef6
6 changed files with 67 additions and 16 deletions

View file

@ -267,6 +267,7 @@ impl DirEntry {
pub fn from_bytes(bytes: &DirentBytes) -> &Self {
unsafe { &*(bytes.as_ptr() as usize as *const Self) }
}
#[allow(unused)]
pub fn from_bytes_mut(bytes: &mut DirentBytes) -> &mut Self {
unsafe {
&mut *(bytes.as_mut_ptr() as usize as *mut Self)