Login
Login
Register
Questions
Unanswered
Tags
Users
Ask a Question
Ask a Question
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.
Please
log in
or
register
to answer this question.
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.
Please
log in
or
register
to add a comment.
Welcome to Synalysis Q&A, where you can ask questions and receive answers from other members of the community.
All categories
Grammars
(21)
Hexinator
(8)
Synalyze It!
(21)
Scripting
(12)
Related questions
Examples of all the different kinds of scripts?
Getting started with grammars--a file of simple variable-length records
Does or will Synalyze-it support grammars in "RELAX NG Compact" (RNC) syntax?
How to do Bitwise AND Operation
can I scan the entire hard drive (not just a file) for a name and change it with Synalyze It?
Most popular tags
grammar
hexinator
scripts
python
structure
value
endianness
repeat
numberelement
offset-search
automation
floating-point-numbers
variable-length
bit-logic
padding
result
string
object-file
omf-51
font
consists-of
meter-bus
m-bus
cpap
conditional
date
dates
dump
nokia
decode
bug
bin
decrypt
openssl
wav-files
corrupted
audio
csv
lengthunit
structuremapper
headers
signature
pattern
aob
diff
export
hex-editing
installer
elf
masks
magicnumber
derive
mapper
delimited
change
no
getcurrentresults
element
file
length
order
...