[#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‐width encoding_ format, then store `decimal` into the specified `buffer` in that format, and return the number of bytes written to `buffer`. Otherwise, return 0. The behavior is undefined unless `buffer` points to a memory area having at least 5 bytes. Note that this function does not supporting encoding values requiring a full IEEE network encoding, which is supported by the `decimal64ToMultiWidthEncoding` function. == Synopsis Declared in `<bdldfp_decimalconvertutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:BloombergLP/bsls/Types/size_type.adoc[bsls::Types::size_type] decimal64ToMultiWidthEncodingRaw( unsigned char* buffer, xref:BloombergLP/bdldfp/Decimal64.adoc[bdldfp::Decimal64] decimal); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#