Variable size property #318
Unanswered
ErfanBabakhani
asked this question in
Q&A
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 |
0 replies
|
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 ( |
1 reply
|
This is relevant to the discussion, please check it out: https://github.com/maxime-esa/asn1scc/blob/master/Docs/deduced-size.md |
6 replies
This is situation I was talking about Also I have a new question |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
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)
All reactions