Store a four‐byte IEEE float into the specified buffer.

Synopsis

Declared in <bslx_marshallingutil.h>

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

Description

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.

Parameters

Name

Description

buffer

destination buffer in network byte order

value

host‐order four‐byte IEEE float to write

Created with MrDocs