Question about scripts and grammars

0 votes
asked Mar 8, 2023 by ebruno (180 points)
My file has value in one structure that is used to compute the length of the next structure.

The structure with that information is at a fixed location in the file.

So I need to take that value and use to set length of following structure.

1 Answer

0 votes
answered Mar 8, 2023 by andreas (3,500 points)
In general you can use the name of the element that holds the length in the Length field of the following structure.

Have you tried this?
commented Mar 9, 2023 by ebruno (180 points)
edited Mar 9, 2023 by ebruno
I defined the length as (H.FMAX / 4096) + 1 and that worked.
...