BloombergLP::bdldfp::DecimalConvertUtil::decimal64FromVariableWidthEncoding

Decode a variable-width Decimal64 from buffer into decimal.

Synopsis

Declared in <bdldfp_decimalconvertutil.h>

static
unsigned char const*
decimal64FromVariableWidthEncoding(
    bdldfp::Decimal64* decimal,
    unsigned char const* buffer);

Description

The behavior is undefined unless buffer points to a memory area holding a Decimal64 value encoded in the variable-width encoding format.

Return Value

address one past the last byte read

Parameters

NameDescription
decimalreceives the decoded value
bufferbuffer containing a variable-width encoding