BloombergLP::bdldfp::DecimalConvertUtil::decimalFromDPD

Store into decimal the value decoded from DPD data at buffer.

Synopsis

Declared in <bdldfp_decimalconvertutil.h>

static
void
decimalFromDPD(
    Decimal32* decimal,
    unsigned char const* buffer);

Description

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

Parameters

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