BloombergLP::bslx::MarshallingUtil::putFloat32

Load into the specified buffer the four-byte IEEE single-precision floating-point number (in network byte order) comprised of the most-significant four bytes of the specified value (in host byte order). The behavior is undefined unless buffer has sufficient capacity. Note that for non-conforming platforms, this operation may be lossy.

Synopsis

Declared in <bslx_marshallingutil.h>

static
void
putFloat32(
    char* buffer,
    float value);