[#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‐width encoding_ format, into the specified `buffer` and return the number of bytes used by the encoding. 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). == 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] decimal64ToMultiWidthEncoding( unsigned char* buffer, xref:BloombergLP/bdldfp/Decimal64.adoc[bdldfp::Decimal64] decimal); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#