BloombergLP::bslx::MarshallingUtil::putArrayFloat64

Store consecutive eight-byte IEEE doubles into the specified buffer.

Synopsis

Declared in <bslx_marshallingutil.h>

static
void
putArrayFloat64(
    char* buffer,
    double const* values,
    int numValues);

Description

Load into the specified buffer the consecutive eight-byte IEEE double-precision floating-point numbers (in network byte order) comprised of the most-significant eight bytes of each of the specified numValues leading entries in the specified values (in host byte order). The behavior is undefined unless buffer has sufficient capacity, values has sufficient contents, and 0 <= numValues. Note that for non-conforming platforms, this operation may be lossy.

Parameters

NameDescription
bufferdestination buffer in network byte order
valuesarray of host-order eight-byte IEEE doubles to write
numValuesnumber of values to write