mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 12:59:04 +00:00
Update block.zig
This commit is contained in:
parent
622a364715
commit
43c76e0c8e
@ -1,5 +1,5 @@
|
||||
const std = @import("../../std.zig");
|
||||
const lzma = std.compress.lzma;
|
||||
const lzma2 = std.compress.lzma2;
|
||||
const Allocator = std.mem.Allocator;
|
||||
const ArrayListUnmanaged = std.ArrayListUnmanaged;
|
||||
const Crc32 = std.hash.Crc32;
|
||||
@ -155,7 +155,7 @@ pub fn Decoder(comptime ReaderType: type) type {
|
||||
|
||||
// Compressed Data
|
||||
var packed_counter = std.io.countingReader(block_reader);
|
||||
try lzma.lzma2Decompress(
|
||||
try lzma2.decompress(
|
||||
self.allocator,
|
||||
packed_counter.reader(),
|
||||
self.to_read.writer(self.allocator),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user