BloombergLP::bdldfp::DecimalConvertUtil::decimal64FromMultiWidthEncoding

Decode a decimal value in the multi-width encoding format from the specified buffer having the specified size. Return the decoded value. The behavior is undefined unless buffer has at least size bytes, and size is a valid encoding size in the multi-width encoding format.

Synopsis

Declared in <bdldfp_decimalconvertutil.h>

static
Decimal64
decimal64FromMultiWidthEncoding(
    unsigned char const* buffer,
    bsls::Types::size_type size);