BloombergLP::bdldfp::DecimalConvertUtil::decimal128FromBID

Return the Decimal128 decoded from BID data at buffer.

Synopsis

Declared in <bdldfp_decimalconvertutil.h>

static
Decimal128
decimal128FromBID(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 BID format.

Return Value

native Decimal128 representation of the BID value

Parameters

NameDescription
bufferbuffer containing a BID-encoded value