Skip to content
Discussion options

You must be logged in to vote

Ok, I see it's a quite advanced construct. To summarize, is was designed to provide the size of the variable-size array from an external source (computed by a function named asw-mapper-20-3-parameter-value, that you provide in your C code).

Let me explain:

The ASN.1 snippet means you have single field (field-data) accessible to the end user in the data structure.

In the ACN snippet there is an added field named field-length, of type ASW-PARAMETER-VALUE-LENGTH.

The ACN parameters used for this field are the ones between brackets:

size 0 means that in practice the field will not use any bits in the final structure.
encoding pos-int is the rule for the binary encoding. Since zero bits are us…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@tsgowtham-pxl
Comment options

Comment options

You must be logged in to vote
1 reply
@tsgowtham-pxl
Comment options

Answer selected by tsgowtham-pxl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants