BloombergLP::bdldfp::DecimalConvertUtil::decimalFromBID

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

Synopsis

Declared in <bdldfp_decimalconvertutil.h>

static
void
decimalFromBID(
    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 BID format.

Parameters

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