Fixes and optimizations
Added FragManager so each frag block only gets decompressed once Returned to C for decompression (only zstd stateless ATM)
This commit is contained in:
@@ -48,12 +48,14 @@ pub fn main(init: std.process.Init) !void {
|
||||
var out = stdout.writer(io, &[0]u8{});
|
||||
defer out.interface.flush() catch {};
|
||||
|
||||
try handleArgs(init.minimal.args, &out.interface);
|
||||
if (archive.len == 0) {
|
||||
try out.interface.print("You must provide a squashfs archive\n", .{});
|
||||
try out.interface.print(help_mgs, .{});
|
||||
return;
|
||||
}
|
||||
// try handleArgs(init.minimal.args, &out.interface);
|
||||
// if (archive.len == 0) {
|
||||
// try out.interface.print("You must provide a squashfs archive\n", .{});
|
||||
// try out.interface.print(help_mgs, .{});
|
||||
// return;
|
||||
// }
|
||||
archive = "testing/LinuxPATest.sfs";
|
||||
extLoc = "testing/LinuxPABinTest";
|
||||
|
||||
var fil = try Io.Dir.cwd().openFile(io, archive, .{}); //TODO: Handle error gracefully.
|
||||
defer fil.close(io);
|
||||
|
||||
Reference in New Issue
Block a user