Updated unsquashfs for zig 0.16.0

Fixed a couple bugs
Added scaffold for extraction
This commit is contained in:
Caleb Gardner
2026-05-29 18:50:45 -05:00
parent 2cb0863cc1
commit 56ad79ba94
10 changed files with 145 additions and 57 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ pub fn init(alloc: std.mem.Allocator, rdr: *Reader, size: u32) !Directory {
}
}
return entries.toOwnedSlice(alloc);
return .{ .entries = try entries.toOwnedSlice(alloc) };
}
pub fn deinit(self: Directory, alloc: std.mem.Allocator) void {
for (self.entries) |entry|