[#BloombergLP-bdldfp-DecimalConvertUtil-decimal64ToMultiWidthEncoding]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdldfp.adoc[bdldfp]::xref:BloombergLP/bdldfp/DecimalConvertUtil.adoc[DecimalConvertUtil]::decimal64ToMultiWidthEncoding
:relfileprefix: ../../../
:mrdocs:

Store the specified `decimal`, in the _multi&hyphen;width encoding_ format, into the specified `buffer` and return the number of bytes used by the encoding&period; The behavior is undefined unless `buffer` points to a memory area with enough room to hold the encode value (which has a maximum size of 8 bytes)&period;

== Synopsis

Declared in `&lt;bdldfp&lowbar;decimalconvertutil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:BloombergLP/bsls/Types/size_type.adoc[bsls::Types::size&lowbar;type]
decimal64ToMultiWidthEncoding(
    unsigned char* buffer,
    xref:BloombergLP/bdldfp/Decimal64.adoc[bdldfp::Decimal64] decimal);
----


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