[#WriteCompactSize-0d]
= WriteCompactSize
:mrdocs:

Write a value to a stream in CompactSize encoding&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename Stream&gt;
void
WriteCompactSize(
    Stream& os,
    uint64&lowbar;t nSize);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *os*
| The output stream&period;
| *nSize*
| The value to encode as a CompactSize&period;
|===


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