xref: /linux/tools/net/sunrpc/xdrgen/templates/C/union/decoder/string.j2 (revision cdd30ebb1b9f36159d66f088b61aee264e649d7a)
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