[#CScriptNum-serialize]
= xref:CScriptNum.adoc[CScriptNum]::serialize
:relfileprefix: ../
:mrdocs:

Encodes an integer as a little&hyphen;endian, sign&hyphen;magnitude byte vector&period;

== Synopsis

Declared in `&lt;script&sol;script&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
std::vector&lt;unsigned char&gt;
serialize(int64&lowbar;t const& value);
----

== Return Value

The minimal byte encoding of `value` (empty for zero)&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *value*
| Integer to encode&period;
|===


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