var inputBuffer = std.mem.zeroes([1024]u8);
while (true) {
- const input = try r.readUntilDelimiter(&inputBuffer, '\n');
+ const input = r.readUntilDelimiter(&inputBuffer, '\n') catch continue;
- const id = try std.fmt.parseInt(u160, input, 16);
+ const id = std.fmt.parseInt(u160, input, 16) catch continue;
if (pf.findObjectOffset(id)) |offset| {
const o = try pf.getObject(offset);
}
print("\n", .{});
} else {
- std.debug.print("type: {}\n", .{o.type});
+ std.debug.print("type: {}\n{s}\n", .{ o.type, o.data });
}
}
}