-
Notifications
You must be signed in to change notification settings - Fork 194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
string content as parameter #968
Comments
@schiebel The - id: magic
contents: value it literally expects the following bytes:
Since the .ksy language is based on YAML, quoting has no effect (it will be processed by the YAML parser and KSC only receives the 5-character string " - id: magic
contents: 'value' If you want to use expressions, you have to use the As suggested in https://doc.kaitai.io/user_guide.html#param-types, you can declare:
|
Thanks very much for explaining the issues @generalmimon |
Hello, this could be user error... I am trying to follow the documentation, but I cannot get parameters to work for string content. I have a lot of data blocks like:
so I would like to be able to use parameters like:
I tried
label( ["TableRecord"] )
,label( "TableRecord" )
andlabel( [0x54, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64] )
, I put the square brackets in the parameterized struct, I tried removing the type fromvalue
but nothing seems to work.Is it possible to parameterize string content? Thanks in advance for any help...
The text was updated successfully, but these errors were encountered: