Encode decimal in variable-width format into buffer.
Declared in <bdldfp_decimalconvertutil.h>
static
unsigned char*
decimal64ToVariableWidthEncoding(
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 9 bytes).
address one past the last byte written
| Name | Description |
|---|---|
| buffer | receives the variable-width encoding |
| decimal | value to encode |