Further implementing everthing again.

Added Decompressor vtable interface.
Directory table parsing
Inode reading
Metadata Reader
This commit is contained in:
Caleb J. Gardner
2026-03-27 02:39:07 -05:00
parent a8c067e933
commit ad8222911f
10 changed files with 374 additions and 10 deletions
+9
View File
@@ -34,6 +34,15 @@ pub fn read(alloc: std.mem.Allocator, rdr: *Reader, block_size: u32) !Inode {
},
};
}
pub fn deinit(self: Inode, alloc: std.mem.Allocator) void {
switch (self.data) {
.file => |f| alloc.free(f.block_sizes),
.ext_file => |f| alloc.free(f.block_sizes),
.symlink => |s| alloc.free(s.target),
.ext_symlink => |s| alloc.free(s.target),
else => {},
}
}
// Types