Skip to content

[request] dynamic endian control #30

Description

@Tcll
<switch test="identity.data" comment="">
    <case range="1"><eval expr="endian=&quot;little&quot;" display_error="false" display_result="false" comment=""></case>
    <case range="2"><eval expr="endian=&quot;big&quot;" display_error="false" display_result="false" comment=""></case>
</switch>

<data type="int" name="flags" format="unsigned" len="4" display="" byte_order="{endian}"/>

currently I need to define each struct twice if I want dynamic endian control, which is a lot of work to have to manage when templates become complex.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions