I wanted to make some fields optional with QD syntax just like with "OPTIONAL" tag in ASN1, but I didn't find a proper way to do it.
I tried {m..n} syntax like
SomeType field {0..1};
but I noticed that it actually added a length before field in its wire format, which was not my intention.
I also noticed that there are LowParse.Spec.Option.fst LowParse.SLow.Option.fst LowParse.Low.Option.fst in everparse source code under lowparse, are they complete and usable? Any suggestions on how can I use these code to implement option type in QD?
Thank you for your help!
I wanted to make some fields optional with QD syntax just like with "OPTIONAL" tag in ASN1, but I didn't find a proper way to do it.
I tried {m..n} syntax like
but I noticed that it actually added a length before
fieldin its wire format, which was not my intention.I also noticed that there are
LowParse.Spec.Option.fst LowParse.SLow.Option.fst LowParse.Low.Option.fstin everparse source code underlowparse, are they complete and usable? Any suggestions on how can I use these code to implement option type in QD?Thank you for your help!