Encode decimal in multi-width format into buffer.
Declared in <bdldfp_decimalconvertutil.h>
static
bsls::Types::size_type
decimal64ToMultiWidthEncoding(
unsigned char* buffer,
bdldfp::Decimal64 decimal);
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).
number of bytes used by the encoding
| Name | Description |
|---|---|
| buffer | receives the multi-width encoding |
| decimal | value to encode |