BloombergLP::bslx::MarshallingUtil::getArrayFloat32

Load consecutive four-byte IEEE floats from the specified buffer.

Synopsis

Declared in <bslx_marshallingutil.h>

static
void
getArrayFloat32(
    float* variables,
    char const* buffer,
    int numVariables);

Description

Load into the specified variables the consecutive four-byte IEEE single-precision floating-point numbers (in host byte order) comprised of each of the specified numVariables leading four-byte sequences in the specified buffer (in network byte order). The behavior is undefined unless variables has sufficient capacity, buffer has sufficient contents, and 0 <= numVariables.

Parameters

NameDescription
variablesarray receiving host-order four-byte IEEE floats
buffersource buffer in network byte order
numVariablesnumber of values to read