[#WriteCompactSize-00]
= WriteCompactSize
:mrdocs:

`WriteCompactSize` overloads

== Synopses

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

Account for a CompactSize encoding when computing a serialized size&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
xref:WriteCompactSize-08.adoc[WriteCompactSize](
    xref:SizeComputer.adoc[SizeComputer]& os,
    uint64&lowbar;t nSize);
----

[.small]#xref:WriteCompactSize-08.adoc[_» more&period;&period;&period;_]#

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


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

[.small]#xref:WriteCompactSize-0d.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *os*
| The size computer to update&period;
| *nSize*
| The value that would be encoded as a CompactSize&period;
|===


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