BloombergLP::bdldfp::DecimalConvertUtil::decimalToNetwork

decimalToNetwork overloads

Synopses

Declared in <bdldfp_decimalconvertutil.h>

Same as the overload taking Decimal32.

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

Store decimal in network format into buffer.

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

Same as the overload taking Decimal32.

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

Return Value

address one past the last byte written

Parameters

NameDescription
bufferreceives the network encoding
decimalvalue to encode