Skip to content

Commit 8e7c270

Browse files
authored
Merge pull request #3 from Syndica/sobe/const-reader-memory
Reader: make memory a const slice
2 parents 5095f01 + 67ec606 commit 8e7c270

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/reader.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ const OutBuffer = types.OutBuffer;
77
const Error = @import("error.zig").Error;
88

99
pub const Reader = struct {
10-
memory: []u8,
10+
memory: []const u8,
1111
decompressor: Decompressor,
1212
pos: usize = 0,
1313

14-
pub fn init(memory: []u8) !@This() {
14+
pub fn init(memory: []const u8) !@This() {
1515
return .{
1616
.memory = memory,
1717
.decompressor = try Decompressor.init(.{}),

0 commit comments

Comments
 (0)