[#BloombergLP-bdldfp-DecimalConvertUtil-decimal64ToMultiWidthEncoding] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdldfp.adoc[bdldfp]::xref:BloombergLP/bdldfp/DecimalConvertUtil.adoc[DecimalConvertUtil]::decimal64ToMultiWidthEncoding :relfileprefix: ../../../ :mrdocs: Encode `decimal` in multi‐width format into `buffer`. == 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); ---- == Description The behavior is undefined unless `buffer` points to a memory area with enough room to hold the encoded value (which has a maximum size of 8 bytes). == Return Value number of bytes used by the encoding == Parameters [cols="1,4"] |=== | Name| Description | *buffer* | receives the multi‐width encoding | *decimal* | value to encode |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#