<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Synalysis Q&amp;A - Recent questions in Generic</title>
<link>https://synalysis.guru/q2a/questions/scripting/generic</link>
<description>Powered by Question2Answer</description>
<item>
<title>How to process encoded offsets</title>
<link>https://synalysis.guru/q2a/322/how-to-process-encoded-offsets</link>
<description>I am currently greatly expanding the OpenType grammar. The CFF table uses a complex encoding scheme for number values in order to save space. Some of these encoded values represent offsets to other internal data structures. My questions: How can I either use regular offset elements and feed them decoded values, or how can I programmatically create and configure offset elements? They do not seem to be documented much at all. Thank you!</description>
<category>Generic</category>
<guid isPermaLink="true">https://synalysis.guru/q2a/322/how-to-process-encoded-offsets</guid>
<pubDate>Tue, 09 Jul 2024 14:14:13 +0000</pubDate>
</item>
<item>
<title>How can I re-analyze a file during script development?</title>
<link>https://synalysis.guru/q2a/316/how-can-i-re-analyze-a-file-during-script-development</link>
<description>I’m working on a custom data type in Synalyze It!. It seems that I have to close and re-open the file I want to analyze in order to apply the changes to the script. This makes development and debugging extremely slow. Is there a way to force re-analysis more easily?</description>
<category>Generic</category>
<guid isPermaLink="true">https://synalysis.guru/q2a/316/how-can-i-re-analyze-a-file-during-script-development</guid>
<pubDate>Fri, 05 Jul 2024 19:35:02 +0000</pubDate>
</item>
<item>
<title>Read structure another value within script</title>
<link>https://synalysis.guru/q2a/131/read-structure-another-value-within-script</link>
<description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;I have a structure with name &quot;TLLV&quot;, that splits on 2 substructures: &quot;Header&quot; and &quot;Payload&quot;.&lt;/p&gt;&lt;p&gt;Payload has&amp;nbsp;&quot;Value&quot; and&amp;nbsp;&quot;padding&quot;, that is very depends on the length of the &quot;Value&quot;, specified in Header. And I want to calculate &quot;padding&quot; length in the custom datatype with writing&amp;nbsp;the&amp;nbsp;script:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;currentGrammar = currentMapper.getCurrentGrammar()&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;headerStruct = currentGrammar.getStructureByName(&quot;TLLV_Header&quot;)&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;offset = currentMapper.getCurrentOffset()&lt;br&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;bytesProcessed = currentMapper.mapStructureAtPosition(headerStruct, offset, 16)&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;length = headerStruct.getElementByName(&quot;valueLength&quot;)&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;So, currently, I am able to reach out length, as an element.&lt;/p&gt;&lt;p&gt;But how to convert element to a &quot;Number&quot; type to be able to use it?&lt;/p&gt;&lt;p&gt;&lt;/p&gt;</description>
<category>Generic</category>
<guid isPermaLink="true">https://synalysis.guru/q2a/131/read-structure-another-value-within-script</guid>
<pubDate>Wed, 13 Nov 2019 10:49:56 +0000</pubDate>
</item>
</channel>
</rss>