Get actual size beforehand
NefixEstrada opened this issue · 0 comments
NefixEstrada commented
Hello!
Is it possible to know the size that will have a struct beforehand?
So, having,
#[binrw]
struct A {
first: u8,
second: u16,
third: u8,
}
Is it possible to know that the size that the struct will have will be 4
at comptime?
Could also be added as #[brw(calc(SOMETHING))]
for another struct? Or the struct itself?
Thank you!