BloombergLP::bdldfp::DecimalConvertUtil::decimal64FromMultiWidthEncoding

Decode a multi-width encoded Decimal64 from buffer.

Synopsis

Declared in <bdldfp_decimalconvertutil.h>

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

Description

The behavior is undefined unless buffer has at least size bytes, and size is a valid encoding size in the multi-width encoding format.

Return Value

decoded Decimal64 value

Parameters

NameDescription
bufferbuffer containing a multi-width encoding
sizenumber of encoded bytes to read