Work on extraction

Created DataExtractor & DataReader
Created Lookup tables
This commit is contained in:
Caleb Gardner
2026-05-30 06:22:26 -05:00
parent 56ad79ba94
commit 578911ba67
5 changed files with 569 additions and 19 deletions
+3 -1
View File
@@ -8,7 +8,7 @@ const Directory = @This();
entries: []Entry,
pub fn init(alloc: std.mem.Allocator, rdr: *Reader, size: u32) !Directory {
pub fn init(alloc: std.mem.Allocator, rdr: *Reader, size: u32) Error!Directory {
if (size <= 3) return .{ .entries = &[0]Entry{} };
var entries: std.ArrayList(Entry) = try .initCapacity(alloc, 50);
@@ -56,6 +56,8 @@ pub fn deinit(self: Directory, alloc: std.mem.Allocator) void {
// Types
pub const Error = Reader.Error || std.mem.Allocator.Error;
pub const Entry = struct {
inode_num: u32,
block_start: u32,