TAG in RAW [message #1850948] |
Wed, 23 March 2022 07:32 |
lou ban Messages: 17 Registered: June 2020 |
Junior Member |
|
|
// all in RAW and FILEDORDER(msb)
type record f4_Type{
O1_Type iei,
O1_Type tmp
};
type record f5_Type{
O1_Type iei,
O2_Type tmp
};
type record f6_Type{
B4_Type iei,
B4_Type tmp
};
type record A{
B4_Type f1,
B4_Type f2,
O4_Type f3,
O2_Type f4 optional,
O3_Type f5 optional,
O1_Type f6 optional
}with {
variant "TAG(
f4, iei = '12'O;
f5, iei = '34'O;
f6, iei = '5'H;
)";
};
when decode, I hope '11223344553466771288'O give me a decode error log instead of A :={f1:='0001'B, f2:='0001'B, f3:='22334455'O, f4:={iei:='12'O, tmp:='6677'O}, f5:=omit, f6:=omit}
and I also want an error when optional fields are repeated, sach as '112233445512661277'O
what should I do?
THANKS!
[Updated on: Wed, 23 March 2022 07:34] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.25198 seconds