File Index
Files and directories
Sign in
FILE

fixed_length_array.j2

File preview with syntax highlighting.

linux-6.19.14/tools/net/sunrpc/xdrgen/templates/C/struct/encoder/fixed_length_array.j2 PLAIN TEXT
 1{# SPDX-License-Identifier: GPL-2.0 #}
 2{% if annotate %}
 3	/* member {{ name }} (fixed-length array) */
 4{% endif %}
 5	for (u32 i = 0; i < {{ size }}; i++) {
 6{% if type in pass_by_reference %}
 7		if (xdrgen_encode_{{ type }}(xdr, &value->items[i]) < 0)
 8{% else %}
 9		if (xdrgen_encode_{{ type }}(xdr, value->items[i]) < 0)
10{% endif %}
11			return false;
12	}
~/ Read-only file preview.