BitStream
bitstream::serialize_traits< float > Struct Reference

A trait used to serialize a float as-is, without any bound checking or quantization. More...

#include <float_trait.h>

Static Public Member Functions

template<typename Stream >
static utility::is_writing_t< Stream > serialize (Stream &writer, in< float > value) noexcept
 Serializes a whole float into the writer. More...
 
template<typename Stream >
static utility::is_reading_t< Stream > serialize (Stream &reader, float &value) noexcept
 Serializes a whole float from the reader. More...
 

Detailed Description

A trait used to serialize a float as-is, without any bound checking or quantization.

Member Function Documentation

◆ serialize() [1/2]

template<typename Stream >
static utility::is_reading_t<Stream> bitstream::serialize_traits< float >::serialize ( Stream &  reader,
float &  value 
)
inlinestaticnoexcept

Serializes a whole float from the reader.

Parameters
readerThe stream to read from
valueThe float to serialize to
Returns
Success

◆ serialize() [2/2]

template<typename Stream >
static utility::is_writing_t<Stream> bitstream::serialize_traits< float >::serialize ( Stream &  writer,
in< float >  value 
)
inlinestaticnoexcept

Serializes a whole float into the writer.

Parameters
writerThe stream to write to
valueThe float to serialize
Returns
Success

The documentation for this struct was generated from the following file: