Almost there?

This commit is contained in:
Caleb Gardner
2025-05-17 14:33:16 -05:00
parent f77c2ecf48
commit 9f345e5fdb
5 changed files with 163 additions and 21 deletions
+1
View File
@@ -17,6 +17,7 @@ pub const DecompressType = enum(u16) {
pub fn decompress(self: DecompressType, alloc: std.mem.Allocator, rdr: io.AnyReader) !std.ArrayList(u8) {
var out = std.ArrayList(u8).init(alloc);
errdefer out.deinit();
switch (self) {
.zlib => try compress.zlib.decompress(rdr, out.writer()),
.lzma => {