How can we define a type tree for a variable string, where the first two bytes indicate the length and then the actual string, characters that follow with the length?
02ab, here ab is the string.
03abcghj. here abc is the string, the rest of the part something else
You can create a group with two fields, a size and a string. Then right click on the size field and select the
Sized
attribute for that field. The attribute means that the first field contains the length of the next field.From the manual: