Variable size property #318
Replies: 4 comments 7 replies
-
Because of this lack I have to use optional paramethers and control their existence to handel the size I want reach |
Beta Was this translation helpful? Give feedback.
-
Correct me if I am wrong but I think there is a theoretical impossibility with this specific example, if we assume that the encoder is deterministic. Concretely what values will you place in If the size is e.g. 4, there are multiple possibilities ( |
Beta Was this translation helpful? Give feedback.
-
This is relevant to the discussion, please check it out: https://github.com/maxime-esa/asn1scc/blob/master/Docs/deduced-size.md |
Beta Was this translation helpful? Give feedback.
-
This is situation I was talking about Also I have a new question |
Beta Was this translation helpful? Give feedback.
-
Hello
I have a question. Suppose that I have a field named lenght1 and other field named length2 and both of them declared in ACN.
I also have a field named Message which declared in ASN and now I want to set its size according to lenght2 and also length1
As I see your compiler asn1scc has ability to set the size of a field that declared in ASN according to specific field declared in ACN, but how can I use two fields. In this case suppose I want to set the size of the Message as length1 - length2 (assume I know length1 - length2 is always nonnegative INTEGER)
I mean somthing like :
This situation occurred when I want to calculate the size of specific field from entire PDU body size and other variable size (also some const value)
Beta Was this translation helpful? Give feedback.
All reactions