Relevant code:
This is the trouble line
const keyBytes = try std.mem.asBytes(&entry.keySize);
Here is the entry struct
const Entry = struct {
keySize: u32,
valSize: u32
};
Giving me
main.zig:195:45: error: expected error union type, found '*align(4) const [4]u8
const keyBytes = try std.mem.asBytes(&entry.keySize);
~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
I am pretty stumped on this, the docs dont show that mem.asBytes throws any errors, unless I dont know what I'm looking for...