BloombergLP::bdldfp::DecimalConvertUtil::decimal128FromDPD

decimal128FromDPD overloads

Synopses

Declared in <bdldfp_decimalconvertutil.h>

Return the Decimal128 decoded from DPD data at buffer.

static
Decimal128
decimal128FromDPD(unsigned char const* buffer);
» more...

Same as the overload taking Decimal32.

static
void
decimal128FromDPD(
    Decimal128* decimal,
    unsigned char const* buffer);
» more...

Return Value

native Decimal128 representation of the DPD value

Parameters

NameDescription
bufferbuffer containing a DPD-encoded value
decimalreceives the decoded value