blob: b01833a2c7a19b114a9d8bc67f52a627eaa46d47 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
{# SPDX-License-Identifier: GPL-2.0 #}
{% if annotate %}
/* member {{ name }} (fixed-length array) */
{% endif %}
for (u32 i = 0; i < {{ size }}; i++) {
{% if type in pass_by_reference %}
if (xdrgen_encode_{{ type }}(xdr, &value->items[i]) < 0)
{% else %}
if (xdrgen_encode_{{ type }}(xdr, value->items[i]) < 0)
{% endif %}
return false;
}
|