working on iterator

This commit is contained in:
2022-02-20 13:17:05 +02:00
committed by Motiejus Jakštys
parent 54ec710f10
commit f2434e3d3c
3 changed files with 89 additions and 39 deletions

View File

@@ -25,7 +25,7 @@ pub const ShellReader = struct {
}
// get returns a shell at the given index.
pub fn get(self: *const ShellReader, idx: u10) []const u8 {
pub fn get(self: *const ShellReader, idx: u6) []const u8 {
const shellIndex = self.sectionIndex[idx];
const start = shellIndex.offset << 2;
const end = start + shellIndex.len + 1;