summaryrefslogtreecommitdiff
path: root/tools/net/sunrpc/xdrgen/templates/C/struct/decoder/fixed_length_array.j2
blob: cfd64217ad82af871af5f5c7c0e24a255e1ab364 (plain)
1
2
3
4
5
6
7
8
{# SPDX-License-Identifier: GPL-2.0 #}
{% if annotate %}
	/* member {{ name }} (fixed-length array) */
{% endif %}
	for (u32 i = 0; i < {{ size }}; i++) {
		if (xdrgen_decode_{{ type }}(xdr, &ptr->{{ name }}.items[i]) < 0)
			return false;
	}