I want something like:
pub const PaddedAndPacked = struct {
foo: bool,
bar: bool,
// 3 byte padding
padding: [3]u8 = .{0} ** 3;
};
However, this won't compile since packed structs cannot contain fields of type [_]T.
Whats the best way to pad here?
I know I could do u24 in this case,
but that won't really work for padding values greater than 128 bytes.