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, size is a valid encoding size in the multi‐width encoding format, and size <= 5. Note that this function does not support decoding values requiring a full IEEE network encoding, which is supported by the decimal64FromMultiWidthEncoding function.

Synopsis

Declared in <bdldfp_decimalconvertutil.h>

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

Created with MrDocs