linux/tools/net/sunrpc/xdrgen/templates/C/pointer/encoder/variable_length_string.j2

{# SPDX-License-Identifier: GPL-2.0 #}
{% if annotate %}
	/* member {{ name }} (variable-length string) */
{% endif %}
	if (value->{{ name }}.len > {{ maxsize }})
		return false;
	if (xdr_stream_encode_opaque(xdr, value->{{ name }}.data, value->{{ name }}.len) < 0)
		return false;