[#SerializeToVector]
= SerializeToVector
:mrdocs:

Serialize arguments as a length&hyphen;prefixed vector into a stream&period;

== Synopsis

Declared in `&lt;psbt&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    typename Stream,
    typename&period;&period;&period; X&gt;
void
SerializeToVector(
    Stream& s,
    X const&&period;&period;&period; args);
----

== Description

The arguments are serialized as if first written into a vector and then into the stream&colon; the output is the total serialized length of all objects followed by the concatenated objects&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *s*
| The output stream&period;
| *args*
| The objects to serialize&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
