xref: /linux/tools/net/sunrpc/xdrgen/templates/C/union/decoder/string.j2 (revision 6810431bc47301376174331f6d85a70c8520c941)
1{# SPDX-License-Identifier: GPL-2.0 #}
2{% if annotate %}
3		/* member {{ name }} (variable-length string) */
4{% endif %}
5		if (!xdrgen_decode_string(xdr, (struct string *)ptr->u.{{ name }}, {{ maxsize }}))
6			return false;
7