decimalToNetwork overloads

Synopses

Declared in <bdldfp_decimalconvertutil.h>

Same as the related overload above for decimalToNetwork.

static
unsigned char*
decimalToNetwork(
    unsigned char* buffer,
    Decimal128 decimal);

Store the specified decimal, in network format, into the specified buffer and return the address one past the last byte written into the buffer. The network format is defined as big endian byte order and densely packed base‐10 significand encoding. This corresponds to the way IBM hardware represents these numbers in memory. The behavior is undefined unless buffer points to a memory area at least sizeof(decimal) in size. Note that these functions always return buffer + sizeof(decimal) on the supported 8‐bits‐byte architectures.

static
unsigned char*
decimalToNetwork(
    unsigned char* buffer,
    Decimal32 decimal);

Same as the related overload above for decimalToNetwork.

static
unsigned char*
decimalToNetwork(
    unsigned char* buffer,
    Decimal64 decimal);

Created with MrDocs