BloombergLP::bdldfp::DecimalConvertUtil::decimal128FromDPD

Return the Decimal128 decoded from DPD data at buffer.

Synopsis

Declared in <bdldfp_decimalconvertutil.h>

static
Decimal128
decimal128FromDPD(unsigned char const* buffer);

Description

The behavior is undefined unless buffer points to a memory area at least sizeof(Decimal128) in size containing a value in DPD format.

Return Value

native Decimal128 representation of the DPD value

Parameters

NameDescription
bufferbuffer containing a DPD-encoded value