Login
Login
Register
Questions
Unanswered
Tags
Users
Ask a Question
Ask a Question
Question about scripts and grammars
0
votes
asked
Mar 8
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
by
andreas
(
3,300
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
by
ebruno
(
180
points)
edited
Mar 9
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
(20)
Hexinator
(6)
Synalyze It!
(20)
Scripting
(10)
Related questions
Examples of all the different kinds of scripts?
Does or will Synalyze-it support grammars in "RELAX NG Compact" (RNC) syntax?
can I scan the entire hard drive (not just a file) for a name and change it with Synalyze It?
Automate file reading and parsing
File drag & drop support for Normal and Diff Window?
Most popular tags
grammar
scripts
hexinator
python
structure
value
endianness
repeat
numberelement
offset-search
automation
floating-point-numbers
bit-logic
padding
result
string
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
variable-length
elf
masks
magicnumber
derive
mapper
delimited
change
no
getcurrentresults
element
file
length
order
...