HI,
Just try to save space and time when writing case in Binpac for example,
type SMB_string(case_index: int) = case case_index of {
1 -> a: type1;
2 -> b: type1;
3 -> c: type1;
default -> d: type2;
};
is there any method that I can avoid of repeated writing case 1, 2, 3 as they actually correspond to same type1?
Best