Add user dynamic array field support
[deliverable/barectf.git] / barectf / templates / c / serialize-write-static-array-statements.j2
index 6d818e5e9e8f9c52a7a9d32879da96c76ccae262..7cf5051d7fd639c90f7f91665f5df92b1d74ac04 100644 (file)
  # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
  # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  #}
-{% import 'c/common.j2' as c_common %}
-{% set var_name = op.level | loop_var_name %}
-{% include 'c/serialize-write-statements-comment.j2' %}
-
-{
-       uint32_t {{ var_name }};
-
-       for ({{ var_name }} = 0; {{ var_name }} < (uint32_t) {{ op.ft.length }}; ++{{ var_name }}) {
-{% for subop in op.subops %}
-               {{ subop.serialize_str(stream_type=stream_type, ev_type=ev_type) | indent_tab(2) }}
-{% endfor %}
-       }
-}
+{% set length_src %}{{ op.ft.length }}U{% endset %}
+{% include 'c/serialize-write-array-statements.j2' %}
This page took 0.022974 seconds and 4 git commands to generate.