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

If the specified `decimal` can be encoded in 5 or fewer bytes of the _multi&hyphen;width encoding_ format, then store `decimal` into the specified `buffer` in that format, and return the number of bytes written to `buffer`&period; Otherwise, return 0&period; The behavior is undefined unless `buffer` points to a memory area having at least 5 bytes&period; Note that this function does not supporting encoding values requiring a full IEEE network encoding, which is supported by the `decimal64ToMultiWidthEncoding` function&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]
decimal64ToMultiWidthEncodingRaw(
    unsigned char* buffer,
    xref:BloombergLP/bdldfp/Decimal64.adoc[bdldfp::Decimal64] decimal);
----


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