barectf/templates/metadata/*.j2: normalize
[deliverable/barectf.git] / barectf / templates / c / serialize-write-bit-array-statements.j2
CommitLineData
d6483c83
PP
1{% import 'common.j2' as common %}
2{% set bo = 'le' if op.ft.byte_order == barectf_config.ByteOrder.LITTLE_ENDIAN else 'be' %}
3{{ common.prefix }}bt_bitfield_write_{{ bo }}(&ctx->buf[_BITS_TO_BYTES(ctx->at)],
4 uint8_t, {{ op.offset_in_byte }}, {{ op.ft.size }}, {{ c_type }},
5 ({{ c_type }}) {{ src }});
6ctx->at += {{ op.ft.size }};
This page took 0.025785 seconds and 4 git commands to generate.