BloombergLP::bslx::ByteInStream::getArrayFloat32

Extract an array of four-byte IEEE floats from this stream.

Synopsis

Declared in <bslx_byteinstream.h>

ByteInStream&
getArrayFloat32(
    float* variables,
    int numVariables);

Description

Assign to the specified variables the consecutive four-byte IEEE single-precision floating-point numbers (in host byte order) comprised of each of the specified numVariables four-byte sequences of this stream at the current cursor location (in network byte order), update the cursor location, and return a reference to this stream. If this stream is initially invalid, this operation has no effect. If this function otherwise fails to extract a valid value, this stream is marked invalid and the value of variables is undefined. The behavior is undefined unless 0 <= numVariables and variables has sufficient capacity.

Return Value

a reference to this stream

Parameters

NameDescription
variablesdestination array for the extracted values
numVariablesnumber of four-byte floating-point values to extract